/* Hero (UK version) – left-aligned copy + floating finance cards */

.hero-section.five.hero-uk {
    padding: 200px 0 130px 0;
}

.hero-uk .title {
    font-size: clamp(2.5rem, 4.6vw, 4.9rem);
    line-height: 1.05;
    text-align: left;
}

.hero-uk .top-review--wrap {
    margin-bottom: 28px;
}

.hero-uk .description {
    width: 90%;
    max-width: 640px;
    margin-bottom: 36px;
    text-align: left;
}

.hero-uk__facts {
    list-style: none;
    padding: 0;
    margin: 48px 0 0;
    gap: 14px 44px;
}

.hero-uk__facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
}

.hero-uk__facts strong {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-uk__facts span {
    font-size: 15px;
    opacity: 0.7;
}

/* ---- visual ---- */
.hero-uk__visual {
    min-height: 560px;
}

.hero-uk__art {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-uk__art img {
    width: min(100%, 460px);
    height: auto;
}

.hero-uk__card {
    position: absolute;
    padding: 18px 22px;
    border-radius: 20px;
    background: #fff;
    color: #0B1F3A;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    animation: heroUkFloat 6s ease-in-out infinite;
}

.hero-uk__card--budget {
    top: 4%;
    left: -2%;
    min-width: 250px;
}

.hero-uk__card--savings {
    top: 36%;
    right: -2%;
    min-width: 190px;
    animation-delay: -2s;
}

.hero-uk__card--fund {
    bottom: 4%;
    left: 6%;
    min-width: 240px;
    animation-delay: -4s;
}

.hero-uk__label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.65;
}

.hero-uk__value {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-uk__trend {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #C4F112;
    font-size: 13px;
    font-weight: 600;
}

.hero-uk__donut {
    flex-shrink: 0;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: conic-gradient(#0FB5A6 0 50%, #C4F112 50% 80%, #FF582F 80% 100%);
    -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%);
    mask: radial-gradient(circle, transparent 46%, #000 47%);
}

.hero-uk__legend {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
}

.hero-uk__legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.8;
}

.hero-uk__legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-uk__bar {
    height: 10px;
    border-radius: 10px;
    background: #E4E8EE;
    overflow: hidden;
}

.hero-uk__bar span {
    display: block;
    width: 66%;
    height: 100%;
    border-radius: 10px;
    background: #0FB5A6;
}

.hero-uk__note {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
}

@keyframes heroUkFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-uk__card { animation: none; }
}

@media (max-width: 1199px) {
    .hero-section.five.hero-uk { padding-top: 150px; }
    .hero-uk__visual { min-height: 500px; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 575px) {
    .hero-uk__visual { min-height: 440px; }
    .hero-uk__card--budget { left: 0; min-width: 220px; }
    .hero-uk__card--savings { right: 0; }
    .hero-uk__card--fund { left: 0; min-width: 210px; }
    .hero-uk__facts { gap: 14px 26px; }
}

/* explicit colours so dark theme can't turn card text white-on-white */
.hero-uk .hero-uk__card,
.hero-uk .hero-uk__card * {
    color: #0B1F3A;
}

.hero-uk__facts strong,
.hero-uk__facts span {
    color: #000;
}

body.dark .hero-uk__facts strong,
body.dark .hero-uk__facts span {
    color: #fff;
}

/* headline: line-by-line reveal (word-safe, no per-letter spans) */
.hero-uk .hero-uk__line {
    display: block;
    text-align: left;
    overflow-wrap: break-word;
    opacity: 0;
    animation: heroUkRise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-uk .hero-uk__line:nth-child(2) {
    animation-delay: 0.15s;
}

@keyframes heroUkRise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-uk .hero-uk__line { opacity: 1; animation: none; }
}
