/* ============================================================
   UK Driving Theory Test — landing page styles
   Brand: green (#2d6a1f), accent red (#e8185a), yellow (#f5c400)
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --brand:        #2d6a1f;
    --brand-dark:   #1a3f12;
    --brand-light:  #4a9432;
    --accent:       #e8185a;
    --yellow:       #f5c400;
    --bg:           #f7f9f5;
    --bg-white:     #ffffff;
    --t1:           #111827;
    --t2:           #4b5563;
    --t3:           #9ca3af;
    --border:       #e2f0db;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ── Base ───────────────────────────────────────────────── */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--t1);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    margin: 0;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
ul { padding: 0; margin: 0; list-style: none; }

/* ── Reveal animation ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── NAV ────────────────────────────────────────────────── */
.udt-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #f0f0f0;
}

.udt-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.udt-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--t1);
}

.udt-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.udt-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.udt-nav-links a {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--t2);
    transition: color 0.2s, background 0.2s;
}

.udt-nav-links a:hover { color: var(--t1); background: #f3f4f6; }

.udt-nav-cta {
    background: var(--brand) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    margin-left: 8px;
    transition: background 0.2s !important;
}
.udt-nav-cta:hover { background: var(--brand-dark) !important; }

.udt-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: var(--t1);
}
.udt-nav-toggle svg { width: 22px; height: 22px; }
.udt-nav-toggle:hover { background: #f3f4f6; }

.udt-mobile-menu {
    border-top: 1px solid #f0f0f0;
    background: var(--bg-white);
    padding: 8px 0;
}

.udt-mobile-menu a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--t2);
    transition: color 0.2s;
}
.udt-mobile-menu a:hover { color: var(--brand); }

@media (max-width: 768px) {
    .udt-nav-links { display: none; }
    .udt-nav-toggle { display: flex; }
}

/* ── Stats bar ──────────────────────────────────────────── */
.udt-stats-bar {
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 60%, var(--accent) 100%);
    padding: 10px 24px;
}

.udt-stats-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.udt-stats-bar-inner span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.udt-stats-bar-inner svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Hero ───────────────────────────────────────────────── */
.udt-hero {
    background: var(--bg-white);
    padding: 64px 24px;
}

.udt-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}

.udt-hero-text { flex: 1; }

.udt-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(45, 106, 31, 0.2);
    margin-bottom: 20px;
}

.udt-hero-text h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--t1);
    margin: 12px 0 16px;
}

.udt-grad {
    background: linear-gradient(120deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.udt-hero-lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--t2);
    max-width: 52ch;
    margin-bottom: 24px;
}

.udt-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #eaf6e4;
    color: var(--brand);
    border: 1.5px solid #b6e0a0;
    margin-bottom: 4px;
}

.udt-tag--red { background: #fef2f2; color: var(--accent); border-color: #fecdd3; }

.udt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.udt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: #eaf6e4;
    color: var(--brand);
    border: 1.5px solid #b6e0a0;
}

.udt-chip svg { width: 14px; height: 14px; flex-shrink: 0; }

.udt-play-badge img { display: block; }

/* Hero card */
.udt-hero-card {
    flex: 1;
    display: flex;
    justify-content: center;
}

.udt-dashboard-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-white);
    border-radius: 24px;
    border: 2px solid #d1fae5;
    box-shadow: 0 0 0 2px rgba(45, 106, 31, 0.1), 0 20px 60px rgba(45, 106, 31, 0.12);
    overflow: hidden;
}

.udt-dashboard-header {
    background: var(--brand);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.udt-dashboard-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.udt-dashboard-sub {
    font-size: 12px;
    color: #bbf7d0;
    margin-top: 2px;
}

.udt-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 20px 12px;
}

.udt-stat {
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.udt-stat--green  { background: #f0fdf4; border: 1px solid #d1fae5; }
.udt-stat--red    { background: #fff1f2; border: 1px solid #fecdd3; }
.udt-stat--yellow { background: #fefce8; border: 1px solid #fef08a; }
.udt-stat--purple { background: #faf5ff; border: 1px solid #e9d5ff; }

.udt-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.udt-stat--green  .udt-stat-num { color: var(--brand); }
.udt-stat--red    .udt-stat-num { color: var(--accent); }
.udt-stat--yellow .udt-stat-num { color: #a16207; }
.udt-stat--purple .udt-stat-num { color: #7c3aed; }

.udt-stat-label { font-size: 11px; color: var(--t3); }

.udt-progress-row {
    margin: 0 20px 20px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.udt-progress-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.udt-progress-icon svg { width: 16px; height: 16px; color: #fff; }

.udt-progress-label { font-size: 12px; font-weight: 600; color: var(--t1); margin-bottom: 4px; }

.udt-progress-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--t3);
}

.udt-progress-bar::before {
    content: '';
    display: block;
    width: 64px;
    height: 6px;
    border-radius: 999px;
    background: #4ade80;
}

/* ── Stats row ──────────────────────────────────────────── */
.udt-stats-row {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
}

.udt-stats-row-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.udt-stat-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.udt-stat-card-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.udt-stat-card-label { font-size: 13px; color: var(--t3); }

.udt-green  { color: var(--brand); }
.udt-red    { color: var(--accent); }
.udt-yellow { color: #ca8a04; }
.udt-purple { color: #7c3aed; }

/* ── Features ───────────────────────────────────────────── */
.udt-features {
    background: var(--bg-white);
    padding: 72px 24px;
}

.udt-section-inner { max-width: 1200px; margin: 0 auto; }

.udt-section-head {
    text-align: center;
    margin-bottom: 48px;
}

.udt-section-head h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--t1);
    margin: 10px 0 12px;
    letter-spacing: -0.02em;
}

.udt-section-head p { font-size: 16px; color: var(--t2); max-width: 60ch; margin: 0 auto; }

.udt-section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 999px;
    margin: 20px auto 0;
    opacity: 0.25;
}

.udt-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.udt-feature-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.udt-feature-card:hover {
    box-shadow: 0 8px 32px rgba(45, 106, 31, 0.1);
    transform: translateY(-2px);
}

.udt-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
}

.udt-feature-card p { font-size: 13.5px; color: var(--t2); line-height: 1.6; flex: 1; }

.udt-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.udt-feature-icon svg { width: 20px; height: 20px; }

.udt-icon--green  { background: #f0fdf4; }
.udt-icon--green  svg { color: var(--brand); }
.udt-icon--red    { background: #fff1f2; }
.udt-icon--red    svg { color: var(--accent); }
.udt-icon--yellow { background: #fefce8; }
.udt-icon--yellow svg { color: #a16207; }
.udt-icon--purple { background: #faf5ff; }
.udt-icon--purple svg { color: #7c3aed; }
.udt-icon--blue   { background: #eff6ff; }
.udt-icon--blue   svg { color: #2563eb; }

.udt-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: flex-start;
}

.udt-pill--green  { background: #f0fdf4; color: var(--brand); }
.udt-pill--red    { background: #fff1f2; color: var(--accent); }
.udt-pill--yellow { background: #fefce8; color: #a16207; }
.udt-pill--purple { background: #faf5ff; color: #7c3aed; }
.udt-pill--blue   { background: #eff6ff; color: #2563eb; }

/* ── Screenshots ────────────────────────────────────────── */
.udt-screenshots {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 72px 24px;
}

.udt-screenshots-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    justify-content: flex-start;
}

.udt-screenshots-scroll::-webkit-scrollbar { display: none; }

.udt-screenshots-scroll img {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 180px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.udt-screenshots-hint {
    text-align: center;
    font-size: 12px;
    color: var(--t3);
    margin-top: 16px;
}

/* ── How it works ───────────────────────────────────────── */
.udt-how {
    background: var(--bg-white);
    padding: 72px 24px;
}

.udt-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.udt-how-step { text-align: center; }

.udt-how-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.udt-how-num--green  { background: #f0fdf4; color: var(--brand); box-shadow: 0 0 0 2px rgba(45,106,31,0.12), 0 4px 20px rgba(45,106,31,0.12); }
.udt-how-num--red    { background: #fff1f2; color: var(--accent); box-shadow: 0 0 0 2px rgba(232,24,90,0.12), 0 4px 20px rgba(232,24,90,0.12); }
.udt-how-num--yellow { background: #fefce8; color: #a16207; box-shadow: 0 0 0 2px rgba(245,196,0,0.2), 0 4px 20px rgba(245,196,0,0.12); }

.udt-how-step h3 { font-size: 18px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.udt-how-step p  { font-size: 14px; color: var(--t2); line-height: 1.65; max-width: 30ch; margin: 0 auto; }

/* ── Topics marquee ─────────────────────────────────────── */
.udt-marquee-wrap {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    overflow: hidden;
}

.udt-marquee-label {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 14px;
}

.udt-marquee-outer { overflow: hidden; }

@keyframes udt-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.udt-marquee-track {
    display: flex;
    gap: 12px;
    white-space: nowrap;
    animation: udt-marquee 30s linear infinite;
}

/* ── Download CTA ───────────────────────────────────────── */
.udt-download {
    background: var(--bg-white);
    padding: 72px 24px;
}

.udt-download-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.udt-download-inner h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--t1);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.udt-download-inner p { font-size: 16px; color: var(--t2); line-height: 1.7; margin-bottom: 24px; }

.udt-disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 28px;
}
.udt-disclaimer svg { width: 16px; height: 16px; flex-shrink: 0; }

.udt-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(45, 106, 31, 0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.udt-download-btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(45,106,31,0.35); }
.udt-download-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.udt-footer {
    background: #030712;
    padding: 56px 24px 0;
    border-top: 1px solid #1f2937;
}

.udt-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.udt-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.udt-footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.udt-footer-brand span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.udt-footer-col > p { font-size: 13px; color: #6b7280; line-height: 1.7; margin-bottom: 20px; }

.udt-footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.udt-footer-col ul li { padding: 6px 0; font-size: 13px; color: #6b7280; }
.udt-footer-col ul li a { text-decoration: none; color: #6b7280; transition: color 0.2s; }
.udt-footer-col ul li a:hover { color: #d1fae5; }

.udt-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid #1f2937;
    text-align: center;
}

.udt-footer-bottom p { font-size: 12px; color: #4b5563; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .udt-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .udt-hero-inner { flex-direction: column; }
    .udt-hero-text { text-align: center; }
    .udt-hero-text .udt-tag,
    .udt-hero-text .udt-hero-icon { margin-left: auto; margin-right: auto; }
    .udt-hero-text .udt-chips { justify-content: center; }
    .udt-hero-text .udt-play-badge { display: flex; justify-content: center; }
    .udt-hero-text .udt-hero-lead { margin-left: auto; margin-right: auto; }
    .udt-stats-row-inner { grid-template-columns: repeat(2, 1fr); }
    .udt-features-grid { grid-template-columns: 1fr; }
    .udt-how-grid { grid-template-columns: 1fr; gap: 28px; }
    .udt-footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .udt-hero { padding: 48px 24px; }
}

@media (max-width: 480px) {
    .udt-stats-row-inner { grid-template-columns: repeat(2, 1fr); }
    .udt-stats-bar-inner { gap: 12px; }
    .udt-stats-bar-inner span { font-size: 11px; }
}
