/* Kuranko footer (dark). Shared across public and account pages.
   The link columns and the legal row sit on the same 12-column grid, so every row lines up. */
.kf-footer {
    --kf-ink: #eaf4f7;
    --kf-text: #c3d3da;
    --kf-muted: #93aab6;
    --kf-line: #ffffff1c;
    --kf-accent: #7fe3cf;
    --kf-gap: 32px;
    padding: 28px 0 0;
    background:
        radial-gradient(55% 45% at 100% 0, #0f4a5a66, transparent 70%),
        radial-gradient(45% 55% at 0 100%, #0b3d8a40, transparent 70%),
        #0a1f2e;
    color: var(--kf-ink);
    font-family: Inter, Arial, sans-serif;
}
.kf-footer .kf-container { width: calc(100% - 80px); max-width: 1240px; margin-inline: auto; }
.kf-footer a { color: var(--kf-text); text-decoration: none; transition: color .15s; }
.kf-footer a:hover { color: #fff; }
.kf-footer :is(a, button, input):focus-visible { outline: 2px solid var(--kf-accent); outline-offset: 4px; border-radius: 4px; }
.kf-footer ul { list-style: none; padding: 0; margin: 0; }
.kf-footer p { margin: 0; }

/* Call to action */
.kf-footer .kf-invitation {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 28px 40px;
    border-radius: 20px;
    border: 1px solid #ffffff17;
    background: linear-gradient(120deg, #0e3652 0%, #0c4859 60%, #0b5d62 100%);
    color: #fff;
}
.kf-invitation::before, .kf-invitation::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 440px;
    height: 440px;
    border: 1px solid #9edcd526;
    border-radius: 50%;
    right: -100px;
    top: -295px;
    pointer-events: none;
}
.kf-invitation::after { width: 570px; height: 570px; right: -165px; top: -360px; }
.kf-footer .kf-kicker { display: inline-flex; align-items: center; gap: 9px; color: #c0d9df; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.kf-kicker > span { width: 6px; height: 6px; border-radius: 50%; background: #a0e9d6; flex-shrink: 0; }
.kf-footer .kf-invitation h2 { color: #fff; font-family: Outfit, Inter, sans-serif; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; letter-spacing: -.04em; font-weight: 500; margin: 12px 0 0; }
.kf-footer .kf-invitation h2 em { font-style: normal; color: #a0e9d6; }
.kf-footer .kf-invitation-action { width: 278px; flex-shrink: 0; }
.kf-footer .kf-invitation-action > p { font-size: 13px; color: #c6d8df; line-height: 1.7; margin: 0 0 14px; }
.kf-footer .kf-start { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; padding: 6px 6px 6px 22px; border-radius: 40px; background: #a0e9d6; color: #102f43; font-size: 14px; font-weight: 600; }
.kf-footer .kf-start:hover { background: #c0f5e6; color: #102f43; transform: translateY(-2px); }
.kf-start-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; color: #fff; background: #102f43; font-size: 26px; font-weight: 400; transition: transform .2s; }
.kf-start:hover .kf-start-icon { transform: rotate(45deg); }

/* Shared grid */
.kf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--kf-gap); }

/* Brand, newsletter and link columns */
.kf-footer .kf-main { padding: 44px 0 40px; row-gap: 36px; align-items: start; }
.kf-brand { grid-column: span 4; }
.kf-links { grid-column: span 2; }
.kf-links-policy { grid-column: span 3; }
.kf-footer .kf-logo { display: inline-block; }
.kf-logo img { display: block; width: 156px; height: auto; }
.kf-footer .kf-brand-text { max-width: 320px; margin-top: 14px; text-wrap: balance; font-size: 13px; line-height: 1.7; color: var(--kf-muted); }
.kf-footer .kf-email { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-family: Outfit, Inter, sans-serif; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--kf-ink); }
.kf-footer .kf-email > span { color: var(--kf-accent); }
.kf-footer .kf-email:hover { color: var(--kf-accent); }
.kf-footer .kf-label { display: block; margin: 0 0 14px; font-family: Inter, sans-serif; font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--kf-accent); }
.kf-footer .kf-links ul { display: grid; gap: 2px; }
.kf-footer .kf-links a { display: inline-block; padding-block: 4px; font-size: 13px; line-height: 1.5; }
.kf-footer .kf-links a[aria-current=page] { color: var(--kf-accent); }

/* Newsletter */
.kf-footer .kf-newsletter { max-width: 360px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--kf-line); }
.kf-footer .kf-newsletter .kf-label { margin-bottom: 6px; }
.kf-footer .kf-newsletter > p { margin-bottom: 12px; font-size: 12px; line-height: 1.6; color: var(--kf-muted); }
.kf-footer .tp-newsletter-input { display: flex; gap: 6px; padding: 4px; border: 1px solid #ffffff2e; border-radius: 10px; background: #ffffff0d; }
.kf-footer .tp-newsletter-input:focus-within { border-color: var(--kf-accent); }
.kf-footer .tp-newsletter-input input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; color: var(--kf-ink); background: transparent; font-size: 12px; border: 0; }
.kf-footer .tp-newsletter-input input:focus-visible { outline: 0; }
.kf-footer .tp-newsletter-input input::placeholder { color: #8ea5b1; opacity: 1; }
.kf-footer .tp-newsletter-input button { flex-shrink: 0; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 7px; color: #0a1f2e; background: #a0e9d6; font-size: 11px; font-weight: 600; }
.kf-footer .tp-newsletter-input button:hover { background: #c0f5e6; }
.kf-footer .tp-newsletter > p { margin-top: 8px; font-size: 10px; line-height: 1.7; color: var(--kf-muted); }
.kf-footer .tp-newsletter > p a { text-decoration: underline; text-underline-offset: 3px; }
.kf-footer .tp-newsletter-success { margin-bottom: 8px; color: #8de0b5; font-size: 12px; }
.kf-footer .tp-field-error { color: #ffa3b5; font-size: 11px; }

/* Legal row: company, address and payments start on the same column lines as the links above */
.kf-footer .kf-legal { padding: 22px 0 26px; row-gap: 16px; align-items: start; border-top: 1px solid var(--kf-line); font-size: 11px; line-height: 1.8; color: var(--kf-muted); }
.kf-company { grid-column: span 4; }
.kf-footer .kf-company p { color: var(--kf-muted); }
.kf-company strong { font-weight: 600; color: var(--kf-ink); white-space: nowrap; }
.kf-footer .kf-address { grid-column: span 5; font-style: normal; }
.kf-meta { grid-column: span 3; display: grid; gap: 10px; justify-items: start; }
.kf-payments { display: flex; align-items: center; gap: 12px; }
.kf-payments > span { white-space: nowrap; }
.kf-payments i { margin-right: 4px; color: var(--kf-accent); }
.kf-payments img { display: block; box-sizing: content-box; width: 72px; height: auto; padding: 4px 8px; border-radius: 6px; background: #fff; }
.kf-utilities { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.kf-footer .kf-utilities a, .kf-footer .kf-utilities button { padding: 0; border: 0; background: none; font: inherit; color: var(--kf-text); cursor: pointer; }
.kf-footer .kf-utilities a:hover, .kf-footer .kf-utilities button:hover { color: #fff; }

@media (max-width: 1100px) {
    .kf-footer { --kf-gap: 24px; }
    .kf-footer .kf-invitation h2 { font-size: 34px; }
}
/* Tablet: six columns; brand and newsletter share the first row, the three link columns share the second. */
@media (max-width: 960px) {
    .kf-footer .kf-container { width: calc(100% - 48px); }
    .kf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .kf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--kf-gap); align-items: start; }
    .kf-brand > :not(.kf-newsletter) { grid-column: 1; }
    .kf-footer .kf-newsletter { grid-column: 2; grid-row: 1 / span 3; max-width: none; margin-top: 0; padding-top: 0; border-top: 0; }
    .kf-links, .kf-links-policy { grid-column: span 2; }
    .kf-footer .kf-main { padding-top: 36px; }
    .kf-company, .kf-footer .kf-address, .kf-meta { grid-column: span 2; }
}
@media (max-width: 780px) {
    .kf-footer .kf-invitation { padding: 24px 28px; gap: 30px; }
    .kf-footer .kf-invitation h2 { font-size: 30px; }
    .kf-footer .kf-invitation-action { width: 235px; }
    .kf-footer .kf-kicker { font-size: 9px; letter-spacing: .08em; }
}
/* Phone: a single column. */
@media (max-width: 640px) {
    .kf-footer { padding-top: 16px; }
    .kf-footer .kf-container { width: calc(100% - 36px); }
    .kf-footer .kf-invitation { display: block; padding: 22px 20px; border-radius: 16px; }
    .kf-footer .kf-invitation h2 { font-size: clamp(28px, 8vw, 34px); }
    .kf-footer .kf-invitation-action { width: auto; max-width: 330px; margin-top: 16px; }
    .kf-footer .kf-invitation-action > p { font-size: 12px; margin-bottom: 12px; }
    .kf-footer .kf-start { min-height: 48px; padding-left: 20px; font-size: 13px; }
    .kf-start-icon { flex-basis: 36px; height: 36px; font-size: 21px; }
    .kf-grid { grid-template-columns: minmax(0, 1fr); }
    .kf-brand { display: block; }
    .kf-brand, .kf-links, .kf-links-policy, .kf-company, .kf-footer .kf-address, .kf-meta { grid-column: 1 / -1; }
    .kf-footer .kf-main { padding: 28px 0 24px; row-gap: 0; }
    .kf-footer .kf-newsletter { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--kf-line); }
    .kf-footer .kf-links { padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--kf-line); }
    .kf-footer .kf-label { margin-bottom: 8px; }
    .kf-footer .kf-links:not(.kf-links-policy) ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
    .kf-footer .kf-links a { padding-block: 4px; }
    .kf-footer .kf-legal { padding: 20px 0 24px; row-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .kf-footer *, .kf-footer *::before, .kf-footer *::after { transition: none !important; }
    .kf-footer .kf-start:hover, .kf-start:hover .kf-start-icon { transform: none; }
}
@media print { .kf-footer { display: none; } }
