/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Root colors */
:root {
    --primary-color: #5a6ea6; /* muted bluish-periwinkle */
    --brand-color: #5a6ea6;    /* added for buttons/icons */
    --secondary-color: #eef1f8; /* light background for content */
    --text-color: #1a1a1a;
    --link-color: #3b4b8f;
    --link-hover-color: #2b366f;
    --footer-bg: #4b5a8a;
    --footer-text: #ffffff;
}

/* Body */
body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Top nav */
.top-nav {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
}

.top-nav .logo {
    font-weight: bold;
    font-size: 1.4em;
}

.top-nav nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.top-nav nav ul li a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    transition: background-color 0.3s;
}

.top-nav nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Main container */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Headings */
h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Paragraphs */
p {
    margin-bottom: 15px;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Feature / content sections */
.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #d1d5e0;
    text-align: left;
}

table th {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

footer a {
    color: #cbd3f2;
}

footer a:hover {
    text-decoration: underline;
}

/* =============================
   LEARN MORE PAGE
   ============================= */

.lm-hero {
    width: 100%;
    background: linear-gradient(rgba(50,50,80,0.75), rgba(50,50,80,0.75)),
                url('../images/main_heading.jpg') center/cover no-repeat;
    padding: 70px 20px;
    text-align: center;
}

.lm-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.lm-hero-inner h1 {
    font-size: 2.4em;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.25;
}

.lm-hero-inner p {
    font-size: 1.15em;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin: 0;
}

.lm-body {
    max-width: 820px;
    margin: 0 auto 50px;
    background: #f7f8fb;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.12);
    padding: 10px 60px 60px;
}

.lm-section {
    padding: 44px 0;
    border-bottom: 1px solid #e0e4ef;
}

.lm-section:last-of-type {
    border-bottom: none;
}

.lm-section h2 {
    font-size: 1.7em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.lm-section h3 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin: 28px 0 10px;
}

.lm-section h3:first-child {
    margin-top: 0;
}

.lm-section p {
    color: #3a3a3a;
    line-height: 1.8;
    margin-bottom: 14px;
}

.lm-section p:last-child {
    margin-bottom: 0;
}

.lm-section a {
    color: var(--link-color);
}

.lm-use-cases {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 10px;
}

.lm-use-case {
    padding: 24px 28px;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.lm-use-case h3 {
    margin: 0 0 10px;
    font-size: 1.05em;
    color: var(--primary-color);
}

.lm-use-case p {
    margin: 0;
    color: #444;
    line-height: 1.75;
}

.lm-faq {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 10px;
}

.lm-faq-item h3 {
    font-size: 1.05em;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.lm-faq-item p {
    margin: 0;
    color: #555;
    line-height: 1.75;
}

.lm-cta {
    margin-top: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
}

.lm-cta h2 {
    color: #fff;
    font-size: 1.9em;
    margin-bottom: 12px;
}

.lm-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05em;
    margin-bottom: 28px;
    line-height: 1.6;
}

.lm-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-btn-outline {
    display: inline-block;
    padding: 13px 28px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.25s;
}

.lp-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .top-nav nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Pricing Cards */
.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 30px;
}

.pricing-card {
    background-color: white;
    flex: 1 1 300px;
    border-radius: 10px;
    padding: 25px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pricing-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.pricing-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.pricing-card ul li {
    margin-bottom: 8px;
}

.pricing-card .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--link-color);
    color: var(--footer-text);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.pricing-card .btn:hover {
    background-color: var(--link-hover-color);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* Refresh API button */
.refresh-btn {
    background-color: var(--brand-color);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.refresh-btn:hover {
    background-color: #4b5a8a; /* slightly darker brand hover */
    transform: none !important;
}

.refresh-btn:active {
    transform: none !important;
}
/* ── Toggle switch ─────────────────────────────────────────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.toggle-row p { margin: 4px 0 0; font-size: 0.85rem; color: #777; }

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #cdd0e0;
  border-radius: 26px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.toggle-switch input:checked + .toggle-slider { background: #5c6bc0; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
