/* Agrin UK — Mobile Stylesheet (no framework, ~8 KB) */
:root {
    --primary:  #0f2d6e;
    --accent:   #f97316;
    --dark:     #0d1f3c;
    --light:    #f0f4f9;
    --text:     #334155;
    --muted:    #64748b;
    --border:   #e2e8f0;
    --success:  #10b981;
    --white:    #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    padding-bottom: 64px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* ── Header ─────────────────────────────────────────── */
.m-header {
    background: var(--primary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 300;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.m-logo-link {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--white);
    font-weight: 700; font-size: .95rem;
}
.m-logo-link img { max-height: 30px; width: auto; }
.m-desktop-btn {
    font-size: .7rem; color: rgba(255,255,255,.7);
    text-decoration: none; border: 1px solid rgba(255,255,255,.3);
    padding: 5px 11px; border-radius: 20px; white-space: nowrap;
    transition: all .2s;
}
.m-desktop-btn:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* ── Hero ────────────────────────────────────────────── */
.m-hero {
    background: linear-gradient(135deg, #071a3e 0%, var(--primary) 100%);
    color: var(--white); padding: 28px 16px 32px; text-align: center;
}
.m-hero h1 {
    font-size: 1.55rem; font-weight: 800; line-height: 1.2;
    color: var(--white); margin-bottom: 10px;
}
.m-hero p { font-size: .9rem; opacity: .9; margin-bottom: 20px; }
.m-breadcrumb { font-size: .72rem; color: rgba(255,255,255,.6); margin-bottom: 10px; text-align: left; }
.m-breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.m-breadcrumb span { color: rgba(255,255,255,.95); }

/* ── Sections ────────────────────────────────────────── */
.m-section { padding: 22px 16px; }
.m-section.bg-light { background: var(--light); }
.m-section-title { font-size: 1.2rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.m-section-sub { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.m-divider { border: none; border-top: 8px solid var(--light); margin: 0; }

/* ── Buttons ─────────────────────────────────────────── */
.m-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 18px; border-radius: 10px; font-size: .95rem; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer;
    transition: all .2s; width: 100%; min-height: 50px;
    -webkit-tap-highlight-color: transparent;
}
.m-btn + .m-btn { margin-top: 10px; }
.m-btn-primary { background: var(--primary); color: var(--white); }
.m-btn-primary:active { background: #081f55; }
.m-btn-accent  { background: var(--accent); color: var(--white); }
.m-btn-accent:active { background: #ea6b0a; }
.m-btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.m-btn-outline:active { background: var(--primary); color: var(--white); }
.m-btn-white   { background: var(--white); color: var(--primary); }
.m-btn-white:active { background: var(--light); }
.m-btn-green   { background: #25d366; color: var(--white); }
.m-btn-call    { background: #059669; color: var(--white); }
.m-btn-sm { padding: 10px 14px; font-size: .85rem; min-height: 42px; }
.m-btn-row { display: flex; flex-direction: column; gap: 10px; }

/* ── Stats ───────────────────────────────────────────── */
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-stat {
    background: var(--white); border-radius: 12px; padding: 14px 10px;
    text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.m-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--accent); display: block; }
.m-stat-label { font-size: .7rem; color: var(--muted); margin-top: 3px; display: block; line-height: 1.3; }

/* ── Cards ───────────────────────────────────────────── */
.m-card {
    background: var(--white); border-radius: 12px;
    border: 1px solid var(--border); padding: 16px; margin-bottom: 12px;
}
.m-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.m-card-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #2d69c7);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; color: var(--white); font-size: 1rem;
}
.m-card h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin: 0; }
.m-card p   { font-size: .85rem; color: var(--muted); }
.m-popular-label {
    display: inline-block; background: var(--accent); color: var(--white);
    font-size: .6rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .05em; margin-left: 6px; vertical-align: middle;
}

/* ── Price ───────────────────────────────────────────── */
.m-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.m-price-note { font-size: .75rem; color: var(--muted); }

/* ── Accordion ───────────────────────────────────────── */
.m-accordion { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.m-accordion-item + .m-accordion-item { border-top: 1px solid var(--border); }
.m-accordion-toggle {
    width: 100%; background: var(--white); border: none;
    padding: 15px 16px; text-align: left; font-size: .9rem;
    font-weight: 600; color: var(--dark); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; min-height: 52px; -webkit-tap-highlight-color: transparent;
}
.m-accordion-toggle i { font-size: .75rem; color: var(--muted); transition: transform .25s; flex-shrink: 0; }
.m-accordion-toggle.open i { transform: rotate(180deg); }
.m-accordion-body { display: none; padding: 0 16px 16px; font-size: .85rem; color: var(--text); background: var(--light); }
.m-accordion-body.open { display: block; }
.m-accordion-body p { font-size: .85rem; }

/* ── Check list ──────────────────────────────────────── */
.m-check-list { list-style: none; padding: 0; }
.m-check-list li { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: .85rem; }
.m-check-list li i { color: var(--success); font-size: .75rem; margin-top: 3px; flex-shrink: 0; }

/* ── Info table ──────────────────────────────────────── */
.m-info-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.m-info-table tr { border-bottom: 1px solid var(--border); }
.m-info-table td { padding: 10px 6px; }
.m-info-table td:first-child { color: var(--muted); }
.m-info-table td:last-child { font-weight: 700; color: var(--dark); text-align: right; }

/* ── Process steps ───────────────────────────────────── */
.m-step { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.m-step:last-child { border-bottom: none; }
.m-step-num {
    width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
    color: var(--white); display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.m-step h4 { font-size: .9rem; font-weight: 700; color: var(--dark); margin: 0 0 3px; }
.m-step p  { font-size: .8rem; color: var(--muted); margin: 0; }

/* ── Feature rows ────────────────────────────────────── */
.m-feature { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.m-feature:last-child { border-bottom: none; }
.m-feature-icon {
    width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #2d69c7);
    color: var(--white); display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.m-feature h3 { font-size: .9rem; font-weight: 700; color: var(--dark); margin: 0 0 2px; }
.m-feature p  { font-size: .8rem; color: var(--muted); margin: 0; }

/* ── Forms ───────────────────────────────────────────── */
.m-form-group { margin-bottom: 14px; }
.m-label { display: block; font-size: .85rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.m-input, .m-select, .m-textarea {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: 1rem; color: var(--text); background: var(--white);
    -webkit-appearance: none; appearance: none;
}
.m-input:focus, .m-select:focus, .m-textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,45,110,.1);
}
.m-textarea { resize: vertical; min-height: 100px; }
.m-hint { font-size: .75rem; color: var(--muted); margin-top: 4px; display: block; }

/* ── Alert ───────────────────────────────────────────── */
.m-alert { padding: 14px 16px; border-radius: 10px; font-size: .875rem; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.m-alert i { flex-shrink: 0; margin-top: 1px; }
.m-alert-success { background: rgba(16,185,129,.1); color: #065f46; border: 1px solid rgba(16,185,129,.3); }
.m-alert-danger  { background: rgba(239,68,68,.1);  color: #991b1b; border: 1px solid rgba(239,68,68,.3); }

/* ── CTA banner ──────────────────────────────────────── */
.m-cta-banner {
    background: linear-gradient(135deg, var(--primary), #2d69c7);
    color: var(--white); padding: 28px 16px; text-align: center;
}
.m-cta-banner h2 { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.m-cta-banner p  { font-size: .875rem; opacity: .85; margin-bottom: 18px; }

/* ── Scrollable table wrapper ────────────────────────── */
.m-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.m-table { width: 100%; border-collapse: collapse; min-width: 380px; font-size: .78rem; }
.m-table th { background: var(--primary); color: var(--white); padding: 10px 8px; white-space: nowrap; text-align: left; }
.m-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.m-table tr:nth-child(even) td { background: var(--light); }

/* ── Bottom Navigation ───────────────────────────────── */
.m-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--dark); display: flex;
    height: 64px; z-index: 300;
    box-shadow: 0 -2px 16px rgba(0,0,0,.2);
    border-top: 1px solid rgba(255,255,255,.05);
}
.m-nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; color: rgba(255,255,255,.55);
    font-size: .58rem; font-weight: 600; padding: 0 2px;
    transition: color .15s; -webkit-tap-highlight-color: transparent;
    min-width: 0;
}
.m-nav-item i { font-size: 1.05rem; }
.m-nav-item.active { color: var(--accent); }
.m-nav-item:active  { color: var(--white); }
.m-nav-cta {
    flex: 1.4; background: var(--accent); color: var(--white) !important;
    font-size: .62rem; font-weight: 700;
}
.m-nav-cta:active { background: #ea6b0a; }

/* ── Trust strip ─────────────────────────────────────────── */
.m-trust-strip {
    background: var(--dark);
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .72rem;
    color: rgba(255,255,255,.85);
    flex-wrap: wrap;
    text-align: center;
    line-height: 1.4;
}
.m-trust-stars { color: #fbbf24; letter-spacing: 1px; flex-shrink: 0; }

/* ── Utility ─────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted   { color: var(--muted); font-size: .85rem; }
.fw-bold      { font-weight: 700; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mb-0 { margin-bottom: 0 !important; }
.gap-10 { display: flex; flex-direction: column; gap: 10px; }
