/* ===== Base / Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #FAFAFA;
    color: #111827;
    line-height: 1.5;
}

::selection {
    background-color: #e5e7eb;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

img { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
table { border-collapse: collapse; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input { font: inherit; }

/* ===== Layout helpers ===== */
.container-lg {
    max-width: 64rem; /* ~1024px / max-w-5xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-md {
    max-width: 48rem; /* ~768px / max-w-3xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ===== Header / Nav ===== */
.mtd-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.mtd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.mtd-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.2s;
}
.mtd-logo:hover { opacity: 0.8; }
.mtd-logo img { border-radius: 0.5rem; }
.mtd-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #000;
}

.mtd-nav {
    display: none;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}
@media (min-width: 768px) {
    .mtd-nav { display: flex; }
}

.mtd-nav-link {
    color: #6b7280;
    transition: color 0.2s;
}
.mtd-nav-link:hover { color: #000; }

.mtd-nav-cta {
    background-color: #000;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
}
.mtd-nav-cta:hover { background-color: #1f2937; }

.mtd-mobile-menu {
    display: block;
    color: #111827;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mtd-nav.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 50;
}
@media (min-width: 768px) {
    .mtd-mobile-menu { display: none; }
}

/* ===== Main content ===== */
.mtd-main {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
@media (min-width: 768px) {
    .mtd-main {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* ===== Hero ===== */
.mtd-hero {
    text-align: center;
    margin-bottom: 4rem;
}
.mtd-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}
@media (min-width: 768px) {
    .mtd-hero h1 { font-size: 3rem; }
}
.mtd-hero p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .mtd-hero p { font-size: 1.25rem; }
}

/* ===== Phone mockup ===== */
.phone-mockup {
    max-width: 24rem;
    margin: 0 auto 5rem;
    background-color: #000;
    color: #fff;
    border-radius: 2.5rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    border: 8px solid #111827;
    transform: rotate(-1deg);
    transition: transform 0.5s;
}
.phone-mockup:hover { transform: rotate(0deg); }

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0 0.5rem;
}

.phone-greeting {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}
.phone-greeting h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.phone-greeting p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.phone-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.phone-card {
    background-color: rgba(17, 24, 39, 0.8);
    border-radius: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #1f2937;
}
.phone-card-label {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.phone-card-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.phone-card-value {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}
.mtd-sync-badge {
    font-size: 0.75rem;
    background-color: #1f2937;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    color: #d1d5db;
}

.phone-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem 0.5rem;
}
.phone-feed-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}
.phone-feed-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    margin-right: 1rem;
    flex-shrink: 0;
}
.dot-gray { background-color: #4b5563; }
.dot-green { background-color: #22c55e; }
.dot-blue { background-color: #3b82f6; }
.phone-feed-item .text-muted { color: #d1d5db; }
.phone-feed-item .text-highlight {
    color: #fff;
    font-weight: 500;
}

/* ===== Article prose ===== */
.mtd-article p {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.mtd-article p.intro-text {
    margin-bottom: 3rem;
}
.mtd-article strong { color: #000; }

/* ===== Simulator ===== */
.simulator-box {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.simulator-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.simulator-icon {
    background-color: #000;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.simulator-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}
.simulator-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}
.simulator-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
}
.radio-option {
    flex: 1;
    cursor: pointer;
}
.radio-option input { /* sr-only */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.radio-option-label {
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.radio-option-label:hover {
    background-color: #f3f4f6;
}
.radio-option input:checked + .radio-option-label {
    border-color: #000;
    background-color: #000;
    color: #fff;
}

.turnover-input-wrap {
    position: relative;
}
.turnover-input-wrap .currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-weight: 500;
}
.turnover-input {
    width: 100%;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 2rem;
    color: #111827;
    font-weight: 500;
    transition: all 0.2s;
    outline: none;
}
.turnover-input:focus {
    box-shadow: 0 0 0 2px #000;
    border-color: transparent;
}
/* Remove number spinners */
.turnover-input::-webkit-inner-spin-button,
.turnover-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.simulator-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.simulator-btn:hover { background-color: #1f2937; }

/* Simulator result */
.sim-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: opacity 0.3s, transform 0.3s;
}
.sim-result.hidden { display: none; }
.sim-result.animating {
    opacity: 0;
    transform: translateY(0.5rem);
}
.sim-result.visible {
    opacity: 1;
    transform: translateY(0);
}
.sim-result-empty {
    background-color: #f9fafb;
    border-color: #e5e7eb;
}
.sim-result-filled {
    background-color: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.sim-result p.result-prompt {
    font-weight: 500;
    color: #000;
    margin: 0;
}

.sim-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.sim-result-item {
    display: flex;
    gap: 1rem;
}
.sim-result-item + .sim-result-item-bordered {
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
}
.sim-result-item .result-emoji {
    font-size: 1.25rem;
}
.sim-result-item strong {
    display: block;
    color: #000;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.sim-result-item span {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.625;
}

/* ===== Section headings ===== */
.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
}
.section-heading-lg {
    margin-top: 4rem;
}

/* ===== Bullet lists ===== */
.mtd-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    color: #4b5563;
    list-style: none;
    padding: 0;
}
.mtd-list li {
    display: flex;
    align-items: flex-start;
}
.mtd-list .bullet {
    margin-right: 0.75rem;
    color: #000;
    font-weight: 700;
}
.mtd-list.small-list {
    gap: 0.5rem;
    font-size: 0.875rem;
}
.mtd-list.mb-lg { margin-bottom: 2.5rem; }

.mtd-footnote {
    margin-bottom: 3rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===== Callout boxes ===== */
.callout-amber {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 3rem;
}
.callout-blue {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 4rem;
}
.callout-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.callout-icon {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}
.callout-blue-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #2563eb;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.callout-inner h4 {
    font-weight: 700;
    color: #000;
    margin: 0 0 0.25rem;
}
.callout-inner p {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.625;
}

/* ===== Comparison grid ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .comparison-grid { grid-template-columns: 1fr 1fr; }
}

.comparison-old {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.comparison-new {
    background-color: #000;
    color: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.comparison-badge {
    display: inline-block;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}
.comparison-old .comparison-badge {
    background-color: #f3f4f6;
    color: #6b7280;
}
.comparison-new .comparison-badge {
    background-color: #1f2937;
    color: #d1d5db;
}
.comparison-old h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 0.75rem;
}
.comparison-new h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}
.comparison-old p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.625;
}
.comparison-new p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.625;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    border-left: 2px solid #e5e7eb;
    margin-left: 1rem;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0.5rem 0;
}
@media (min-width: 768px) {
    .timeline { margin-left: 1.5rem; }
}
.timeline-item {
    position: relative;
    padding-left: 2rem;
}
@media (min-width: 768px) {
    .timeline-item { padding-left: 2.5rem; }
}
.timeline-dot {
    position: absolute;
    left: -13px;
    top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #FAFAFA;
}
.timeline-dot-black { background-color: #000; }
.timeline-dot-gray { background-color: #d1d5db; }
.timeline-dot-inner {
    width: 0.375rem;
    height: 0.375rem;
    background-color: #fff;
    border-radius: 9999px;
}
.timeline-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 0.25rem;
}
.timeline-item p {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.625;
}

/* ===== Table ===== */
.mtd-table-wrap {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 3rem;
}
.mtd-table {
    width: 100%;
    font-size: 0.875rem;
}
.mtd-table thead tr {
    background-color: #000;
    color: #fff;
}
.mtd-table th {
    text-align: left;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}
.mtd-table td {
    padding: 0.75rem 1.25rem;
}
.mtd-table tbody tr { border-bottom: 1px solid #f3f4f6; }
.mtd-table tbody tr:last-child { border-bottom: none; }
.mtd-table .row-white { background-color: #fff; }
.mtd-table .row-gray { background-color: #f9fafb; }
.mtd-table .row-final {
    background-color: #fff;
    border-top: 2px solid #e5e7eb;
}
.mtd-table .cell-label {
    font-weight: 500;
    color: #000;
}
.mtd-table .cell-bold {
    font-weight: 700;
    color: #000;
}
.mtd-table .cell-muted { color: #4b5563; }

/* ===== Penalty boxes ===== */
.penalty-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.penalty-card {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 1rem;
    padding: 1.25rem;
}
.penalty-card h4 {
    font-weight: 700;
    color: #000;
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
}
.penalty-card p {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
}

/* ===== Feature grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
}
.feature-grid.mb-lg { margin-bottom: 3rem; }

.feature-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
}
.feature-card-icon {
    width: 3rem;
    height: 3rem;
    background-color: #000;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-card-icon svg { width: 1.5rem; height: 1.5rem; }
.feature-card h4 {
    font-weight: 700;
    color: #000;
    margin: 0 0 0.5rem;
}
.feature-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ===== Day timeline ===== */
.day-timeline {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
}
.day-entry {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.day-entry:last-child { border-bottom: none; }
.day-entry-time {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    width: 4rem;
    flex-shrink: 0;
    padding-top: 0.125rem;
}
.day-entry p {
    margin: 0;
}
.day-entry .entry-main {
    font-size: 0.875rem;
    color: #000;
    font-weight: 500;
}
.day-entry .entry-detail {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* ===== Steps ===== */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}
.step-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #000;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.step-card h4 {
    font-weight: 700;
    color: #000;
    margin: 0 0 0.25rem;
}
.step-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 4rem;
}
.faq-item {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}
.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #000;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { background-color: #f9fafb; }

.faq-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s;
}
details[open] .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.625;
}

/* ===== CTA banner ===== */
.cta-banner {
    background-color: #000;
    color: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.cta-banner h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #fff;
}
.cta-banner p {
    color: #9ca3af;
    margin: 0 auto 2rem;
    max-width: 28rem;
    font-size: 1rem;
}
.waitlist-form {
    max-width: 28rem;
    margin: 0 auto;
}
.waitlist-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.waitlist-form input,
.waitlist-form select {
    flex: 1;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.waitlist-form input::placeholder {
    color: #6b7280;
}
.waitlist-form select {
    appearance: none;
    cursor: pointer;
    color: #6b7280;
}
.waitlist-form select:valid {
    color: #fff;
}
.waitlist-form input:focus,
.waitlist-form select:focus {
    border-color: #fff;
}
.waitlist-form button {
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    border: none;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.waitlist-form button:hover {
    background: #e5e7eb;
}
.waitlist-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.waitlist-hint {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.75rem;
}
@media (max-width: 480px) {
    .waitlist-row {
        flex-direction: column;
    }
}

/* ===== Footer ===== */
.mtd-footer {
    border-top: 1px solid #e5e7eb;
    background-color: #fff;
    padding: 4rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.footer-brand img { border-radius: 0.375rem; }
.footer-brand span {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #000;
}
.footer-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.625;
}
.footer-heading {
    font-weight: 600;
    color: #000;
    margin-bottom: 1.5rem;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    list-style: none;
    padding: 0;
}
.footer-links a {
    transition: color 0.2s;
}
.footer-links a:hover { color: #000; }

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.875rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    padding-top: 2rem;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
    }
}

/* ===== Mobile fixes (≤640px) ===== */
@media (max-width: 640px) {
    .mtd-main {
        padding: 2.5rem 1rem;
    }

    .mtd-hero-title {
        font-size: 2rem;
    }

    .mtd-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mtd-table th,
    .mtd-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .comparison-grid .card-dark,
    .comparison-grid .card-light {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .penalty-card {
        padding: 1rem;
    }

    .cta-banner {
        padding: 2rem 1.5rem;
    }

    .cta-banner h2 {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== Very small screens (≤380px) ===== */
@media (max-width: 380px) {
    .mtd-main {
        padding: 2rem 0.75rem;
    }

    .mtd-hero-title {
        font-size: 1.75rem;
    }

    .section-heading-lg {
        font-size: 1.25rem;
    }

    .phone-mockup {
        padding: 1.25rem;
        border-width: 6px;
    }

    .day-time {
        width: 3.5rem;
        font-size: 0.75rem;
    }

    .waitlist-row {
        flex-direction: column;
    }
}
