/* Build.Voto light UI refresh.
   Keep the existing blue / green / amber palette, but improve hierarchy,
   rhythm, responsiveness, focus states, and product-surface polish. */

:root {
    --ink: #101828;
    --ink-strong: #0b1220;
    --muted: #667085;
    --muted-strong: #475467;
    --line: #d9e0ea;
    --line-strong: #c7d2df;
    --panel: #ffffff;
    --blue: #1f5eff;
    --blue-strong: #1746c7;
    --blue-soft: #eef4ff;
    --green: #159957;
    --green-strong: #0f7a45;
    --green-soft: #edfdf5;
    --amber: #b7791f;
    --amber-soft: #fff7e8;
    --soft: #f5f7fb;
    --surface: #f8fafc;
    --shadow-sm: 0 8px 22px rgba(16, 24, 40, .06);
    --shadow-md: 0 18px 46px rgba(16, 24, 40, .09);
    --focus: 0 0 0 4px rgba(31, 94, 255, .16);
    --glass-bg: rgba(255, 255, 255, .68);
    --glass-strong: rgba(255, 255, 255, .82);
    --glass-line: rgba(255, 255, 255, .78);
    --glass-shadow: 0 18px 42px rgba(16, 24, 40, .1);
    --ease-out-quint: cubic-bezier(.22, 1, .36, 1);
    --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
}

html {
    scroll-padding-top: 96px;
}

body {
    font-family: Aptos, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 42%, #eef3f8 100%);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.shell {
    max-width: 1200px;
    padding: 32px 24px 56px;
}

.topbar {
    height: 76px;
    background: rgba(255, 255, 255, .78);
    border-bottom: 1px solid rgba(217, 224, 234, .9);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .05);
    backdrop-filter: blur(18px) saturate(145%);
}

.brand {
    gap: 12px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ink-strong), var(--blue) 62%, var(--green));
    box-shadow: 0 10px 20px rgba(16, 24, 40, .12);
}

.brand-name {
    color: var(--ink-strong);
    font-size: 18px;
}

.brand-subtitle {
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 750;
}

.nav {
    gap: 10px;
}

.nav a:not(.btn) {
    color: #344054;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
}

.nav a:not(.btn):hover,
.nav a:not(.btn).active {
    background: var(--blue-soft);
    color: #173ea8;
}

.btn {
    position: relative;
    overflow: hidden;
    min-height: 46px;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 850;
    box-shadow: none;
    transition: transform .18s var(--ease-out-quint), box-shadow .18s var(--ease-out-quint), background .18s ease, border-color .18s ease, opacity .18s ease;
}

.btn:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .34) 42%, transparent 70%);
    opacity: 0;
    transform: translateX(-42%);
    transition: transform .42s var(--ease-out-expo), opacity .18s ease;
}

.btn:hover {
    box-shadow: var(--shadow-sm);
}

.btn:hover:before {
    opacity: 1;
    transform: translateX(42%);
}

.btn:active,
.nav a:active,
.mobile-footer-link:active {
    transform: translateY(1px) scale(.99);
}

.btn:focus-visible,
.nav a:focus-visible,
.mobile-footer-link:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.project-status-button:focus-visible,
.owner-tab:focus-visible,
.mini-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.btn.blue {
    background: linear-gradient(135deg, var(--blue), var(--blue-strong));
}

.btn.green {
    background: linear-gradient(135deg, var(--green), var(--green-strong));
}

.btn.secondary,
.btn.demo {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line-strong);
}

.btn.demo.blue-demo {
    background: var(--blue-soft);
    border-color: rgba(31, 94, 255, .24);
    color: #173ea8;
}

.btn.demo.green-demo {
    background: var(--green-soft);
    border-color: rgba(21, 153, 87, .24);
    color: #0f7a45;
}

.card {
    border-color: rgba(199, 210, 223, .92);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-sm);
}

.page-title {
    max-width: 590px;
    color: var(--ink-strong);
    font-family: inherit;
    font-weight: 900;
    font-size: clamp(42px, 5.4vw, 76px);
    line-height: .99;
    text-wrap: balance;
}

.section-title,
.card h2,
.card h3 {
    color: var(--ink-strong);
    font-family: inherit;
    font-weight: 850;
    text-wrap: balance;
}

.muted {
    color: var(--muted-strong);
}

.pill {
    border-color: rgba(31, 94, 255, .18);
    background: rgba(238, 244, 255, .9);
    color: #173ea8;
    font-weight: 850;
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 675px;
    margin: -32px -24px 32px;
    padding: 76px 24px 48px;
    align-items: center;
    background:
        linear-gradient(116deg, rgba(255, 255, 255, .99) 0%, rgba(247, 249, 252, .97) 38%, rgba(247, 249, 252, .72) 63%, rgba(247, 249, 252, .3) 100%),
        linear-gradient(150deg, rgba(31, 94, 255, .1) 0%, rgba(31, 94, 255, 0) 34%),
        linear-gradient(28deg, rgba(21, 153, 87, 0) 54%, rgba(21, 153, 87, .11) 100%),
        url('/assets/builder-hero.png') center right / cover no-repeat;
    border-bottom: 1px solid rgba(217, 224, 234, .95);
    animation: hero-shade-shift 18s ease-in-out infinite alternate;
}

.home-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 24%, rgba(255, 255, 255, .68), rgba(255, 255, 255, 0) 20%),
        linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 34%),
        linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .42) 58%, rgba(255, 255, 255, .08) 100%);
    z-index: 0;
}

.home-hero:after {
    content: "";
    position: absolute;
    inset: auto -10% 0 -10%;
    height: 42%;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(238, 244, 255, .58) 52%, rgba(237, 253, 245, .38));
    transform: skewY(-2deg);
    transform-origin: right bottom;
    z-index: 0;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    min-height: 540px;
    align-content: center;
    padding-right: min(47vw, 560px);
}

.home-hero-inner:after {
    content: "";
    position: absolute;
    right: 0;
    top: 34px;
    width: min(48vw, 545px);
    aspect-ratio: 1.18;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 16px;
    background:
        linear-gradient(130deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .26) 48%, rgba(238, 244, 255, .42)),
        url('/assets/builder-hero.png') center / cover no-repeat;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .88),
        0 32px 80px rgba(31, 94, 255, .18),
        0 12px 30px rgba(16, 24, 40, .08);
    transform: rotate(2deg);
}

.hero-accent {
    color: var(--blue);
}

.home-search {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
    width: min(100%, 520px);
    margin-top: 26px;
    padding: 10px;
    border: 1px solid rgba(199, 210, 223, .86);
    border-radius: 12px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 18px 44px rgba(31, 94, 255, .09);
    backdrop-filter: blur(18px) saturate(145%);
    animation: home-flow-in .7s var(--ease-out-expo) .14s both;
}

.home-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.home-search-icon {
    position: relative;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border: 2px solid #52637f;
    border-radius: 50%;
}

.home-search-icon:after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: #52637f;
    right: -6px;
    bottom: -4px;
    transform: rotate(45deg);
    border-radius: 999px;
}

.home-search input {
    min-height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    font-weight: 700;
}

.home-search input:focus {
    box-shadow: none;
}

.home-search button {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    padding: 0 16px;
    background: var(--blue);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s var(--ease-out-quint), background .18s ease;
}

.home-search button:hover {
    background: var(--blue-strong);
}

.home-search button:active {
    transform: scale(.98);
}

.hero-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    animation: home-flow-in .7s var(--ease-out-expo) .2s both;
}

.home-hero .pill,
.home-hero .page-title,
.home-hero .muted,
.hero-actions,
.demo-bar,
.hero-stats {
    animation: home-flow-in .7s var(--ease-out-expo) both;
}

.home-hero .page-title {
    animation-delay: .04s;
}

.home-hero .muted {
    animation-delay: .1s;
}

.hero-actions {
    animation-delay: .16s;
}

.demo-bar {
    animation-delay: .22s;
}

.hero-stats {
    animation-delay: .28s;
}

.home-hero .muted {
    max-width: 550px;
    font-size: 18px;
    line-height: 1.55;
}

.hero-actions {
    max-width: 940px;
    gap: 12px;
    margin-top: 30px;
}

.website-type-rail {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(100%, 1080px);
    max-width: none;
    margin-top: 42px;
    padding: 10px;
    border: 1px solid rgba(199, 210, 223, .78);
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 24px 60px rgba(31, 94, 255, .1);
    backdrop-filter: blur(18px) saturate(145%);
}

.website-type-rail .website-type-link {
    justify-content: center;
    min-height: 64px;
    padding: 12px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-strong);
    box-shadow: none;
    white-space: nowrap;
}

.website-type-rail .website-type-link:hover {
    background: var(--blue-soft);
    color: #173ea8;
    box-shadow: none;
    transform: translateY(-1px);
}

.website-type-rail .website-type-link:before {
    position: static;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    opacity: 1;
    transform: none;
    border-radius: 9px;
    background:
        linear-gradient(135deg, rgba(31, 94, 255, .16), rgba(31, 94, 255, .04));
    box-shadow: inset 0 0 0 1px rgba(31, 94, 255, .2);
}

.website-type-rail .website-type-link:nth-child(2):before {
    background: linear-gradient(135deg, rgba(21, 153, 87, .18), rgba(21, 153, 87, .05));
    box-shadow: inset 0 0 0 1px rgba(21, 153, 87, .22);
}

.website-type-rail .website-type-link:nth-child(3):before {
    background: linear-gradient(135deg, rgba(31, 94, 255, .16), rgba(183, 121, 31, .08));
}

.website-type-rail .website-type-link:nth-child(4):before {
    background: linear-gradient(135deg, rgba(183, 121, 31, .18), rgba(31, 94, 255, .05));
}

.website-type-rail .website-type-link:nth-child(5):before {
    background: linear-gradient(135deg, rgba(31, 94, 255, .16), rgba(21, 153, 87, .08));
}

.hero-actions .btn {
    min-width: 0;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .09);
    transform: translateY(0);
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(16, 24, 40, .14);
}

.hero-actions .btn.blue:hover {
    background: linear-gradient(135deg, #2d68ff, var(--blue-strong));
}

.hero-actions .btn.green:hover {
    background: linear-gradient(135deg, #1ca866, var(--green-strong));
}

.demo-bar {
    position: relative;
    overflow: hidden;
    max-width: 790px;
    margin-top: 20px;
    padding: 14px 15px;
    background: var(--glass-bg);
    border-color: var(--glass-line);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(18px) saturate(145%);
}

.home-hero .demo-bar,
.home-hero .hero-stats {
    display: none;
}

.demo-bar:before,
.stat:before,
.feature:after,
.home-band:before,
.demo-tile:before,
.preset-card:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(132deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .18) 27%, transparent 54%);
    opacity: .52;
}

.demo-bar span {
    color: var(--muted-strong);
}

.hero-stats {
    grid-template-columns: repeat(4, minmax(0, 168px));
    margin-top: 34px;
}

.stat {
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    border-color: var(--glass-line);
    box-shadow: 0 10px 24px rgba(16, 24, 40, .055);
    backdrop-filter: blur(14px) saturate(135%);
    transition: transform .2s var(--ease-out-quint), border-color .2s ease, box-shadow .2s var(--ease-out-quint), background .2s ease;
}

.stat:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 94, 255, .24);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 34px rgba(16, 24, 40, .09);
}

.stat strong {
    color: var(--ink-strong);
    font-size: 23px;
}

.stat span {
    color: var(--muted-strong);
    line-height: 1.35;
}

@keyframes hero-shade-shift {
    from {
        background-position: center right, 0 0, 0 0, center right;
    }
    to {
        background-position: center right, 3% 0, -3% 0, center right;
    }
}

@keyframes home-flow-in {
    from {
        opacity: .001;
        transform: translate3d(0, 14px, 0);
        filter: blur(7px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

.features {
    position: relative;
    gap: 12px;
    margin: 26px 0 30px;
}

.flow-heading,
.templates-heading {
    margin: 50px auto 22px;
    color: var(--ink-strong);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.08;
    text-align: center;
    text-wrap: balance;
}

.templates-heading {
    margin-top: 46px;
    font-size: clamp(23px, 2.4vw, 30px);
}

.features:before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 21px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 94, 255, .3), rgba(21, 153, 87, .3), rgba(183, 121, 31, .28), transparent);
    transform: translateY(-50%);
}

.feature {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(217, 224, 234, .95);
    border-left-width: 1px;
    border-radius: 8px;
    background: var(--glass-strong);
    padding: 18px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .045);
    backdrop-filter: blur(12px) saturate(128%);
    transition: transform .2s var(--ease-out-quint), box-shadow .2s var(--ease-out-quint), border-color .2s ease, background .2s ease;
}

.features .feature {
    min-height: 178px;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.features .feature:before {
    width: 42px;
    height: 42px;
    margin: 0 0 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .86), rgba(255, 255, 255, 0) 36%),
        linear-gradient(135deg, var(--blue), var(--blue-strong));
}

.features .feature:nth-child(2):before {
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .86), rgba(255, 255, 255, 0) 36%),
        linear-gradient(135deg, var(--green), var(--green-strong));
}

.features .feature:nth-child(3):before {
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .86), rgba(255, 255, 255, 0) 36%),
        linear-gradient(135deg, var(--amber), #df7f18);
}

.feature:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 94, 255, .2);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 30px rgba(16, 24, 40, .07);
}

.feature strong {
    position: relative;
    color: var(--ink-strong);
}

.feature:before {
    position: relative;
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: var(--blue);
}

.feature:nth-child(2):before {
    background: var(--green);
}

.feature:nth-child(3):before {
    background: var(--amber);
}

.home-band,
.new-user-panel {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-color: rgba(199, 210, 223, .95);
    background: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(248, 250, 252, .64));
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px) saturate(132%);
}

.new-user-demo-grid {
    gap: 12px;
}

.demo-tile {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .72);
    border-color: rgba(217, 224, 234, .95);
    box-shadow: 0 8px 20px rgba(16, 24, 40, .04);
    backdrop-filter: blur(10px) saturate(124%);
    transition: transform .18s var(--ease-out-quint), box-shadow .18s var(--ease-out-quint), border-color .18s ease;
}

.demo-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 94, 255, .2);
    box-shadow: 0 12px 26px rgba(16, 24, 40, .065);
}

.grid.cols-3 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.grid.cols-3 > .preset-card {
    grid-column: span 2;
}

.grid.cols-3 > .preset-card:nth-last-child(2) {
    grid-column: 2 / span 2;
}

.grid.cols-3 > .preset-card:last-child {
    grid-column: span 2;
}

.preset-card {
    position: relative;
    overflow: hidden;
    min-height: 322px;
    padding: 24px;
    isolation: isolate;
    background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(248, 250, 252, .72));
    backdrop-filter: blur(12px) saturate(128%);
    transition: transform .2s var(--ease-out-quint), box-shadow .2s var(--ease-out-quint), border-color .2s ease, background .2s ease;
}

.preset-card:hover {
    transform: translateY(-3px);
    border-color: #b8c7da;
    box-shadow: var(--shadow-md);
    background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .82));
}

.preset-card:before {
    background:
        linear-gradient(135deg, rgba(31, 94, 255, .055), rgba(21, 153, 87, .045));
}

.preset-card:after {
    z-index: 0;
    opacity: .46;
    transform: translateX(-18%);
    transition: transform .48s var(--ease-out-expo), opacity .2s ease;
}

.preset-card:hover:after {
    opacity: .72;
    transform: translateX(0);
}

.preset-card > * {
    position: relative;
    z-index: 1;
}

.preset-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 18px;
    box-shadow: 0 12px 24px rgba(16, 24, 40, .12);
}

.preset-card h2 {
    margin: 14px 0 10px;
    font-size: 24px;
}

.preset-card .muted {
    min-height: 78px;
}

.preset-actions {
    gap: 10px;
}

input,
textarea,
select {
    color: var(--ink);
    border-color: #c7d2df;
    min-height: 46px;
}

input::placeholder,
textarea::placeholder {
    color: #667085;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #7aa2ff;
    box-shadow: var(--focus);
}

.mobile-footer-nav {
    border-radius: 8px;
}

.image-preview-shell {
    position: relative;
    display: inline-grid;
    width: 112px;
    height: 112px;
    margin-top: 10px;
    vertical-align: top;
}

.image-preview-shell[hidden] {
    display: none;
}

.image-preview-shell .image-preview {
    display: block;
    width: 112px;
    height: 112px;
    max-width: 112px;
    max-height: 112px;
    margin: 0;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    background: #f5f7fb;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .2);
    cursor: pointer;
    font: 800 20px/1 system-ui, sans-serif;
}

.image-preview-remove:hover {
    background: #912018;
}

.image-preview-remove:focus-visible {
    outline: 3px solid rgba(180, 35, 24, .24);
    outline-offset: 2px;
}

.whatsapp-support {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 64;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    max-width: calc(100vw - 32px);
    padding: 9px 14px 9px 9px;
    border-radius: 999px;
    background: #0f7a45;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(15, 122, 69, .28);
    transition: transform .18s var(--ease-out-quint), box-shadow .18s var(--ease-out-quint), background .18s ease;
}

.whatsapp-support:hover {
    background: #0c6b3d;
    box-shadow: 0 18px 34px rgba(15, 122, 69, .34);
    transform: translateY(-2px);
}

.whatsapp-support:active {
    transform: translateY(0) scale(.98);
}

.whatsapp-support:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 122, 69, .2), 0 18px 34px rgba(15, 122, 69, .34);
}

.whatsapp-support-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.whatsapp-support-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.whatsapp-support-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    line-height: 1.05;
}

.whatsapp-support-copy strong,
.whatsapp-support-copy span {
    display: block;
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whatsapp-support-copy strong {
    font-size: 14px;
    font-weight: 950;
}

.whatsapp-support-copy span {
    font-size: 12px;
    font-weight: 800;
    opacity: .86;
}

.has-mobile-footer .whatsapp-support {
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 124px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }

    .home-hero {
        animation: none !important;
    }

    .home-hero .pill,
    .home-hero .page-title,
    .home-hero .muted,
    .hero-actions,
    .home-search,
    .hero-primary-actions,
    .demo-bar,
    .hero-stats {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

@media (max-width: 1040px) {
    .grid.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.cols-3 > .preset-card,
    .grid.cols-3 > .preset-card:nth-last-child(2),
    .grid.cols-3 > .preset-card:last-child {
        grid-column: auto;
    }

    .home-hero-inner {
        padding-right: 0;
    }

    .home-hero-inner:after {
        opacity: .18;
        right: -120px;
        width: 520px;
    }

    .website-type-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-hero {
        align-items: end;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(247, 249, 252, .93) 58%, rgba(247, 249, 252, .78) 100%),
            linear-gradient(150deg, rgba(31, 94, 255, .08) 0%, rgba(31, 94, 255, 0) 42%),
            linear-gradient(28deg, rgba(21, 153, 87, 0) 56%, rgba(21, 153, 87, .08) 100%),
            url('/assets/builder-hero.png') center right / cover no-repeat;
    }

    .home-hero-inner:after {
        display: none;
    }

    .home-band,
    .new-user-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .shell {
        padding: 18px 16px 104px;
    }

    .topbar-inner {
        padding: 12px 16px;
    }

    .brand-subtitle {
        display: none;
    }

    .home-hero {
        min-height: 600px;
        margin: -18px -16px 24px;
        padding: 42px 16px 30px;
    }

    .page-title {
        font-size: 40px;
        line-height: 1.04;
    }

    .home-hero .muted {
        font-size: 16px;
    }

    .home-search {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .home-search button {
        grid-column: 1 / -1;
    }

    .hero-stats,
    .features,
    .grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .website-type-rail {
        grid-template-columns: 1fr;
        margin-top: 26px;
    }

    .features:before {
        display: none;
    }

    .hero-actions .btn,
    .demo-bar .btn,
    .preset-actions .btn {
        width: 100%;
    }

    .demo-bar {
        align-items: stretch;
    }

    .demo-bar span {
        width: 100%;
    }

    .home-band,
    .new-user-panel,
    .preset-card {
        padding: 20px;
    }
}

/* AI image and clean icon pass. */
.home-hero {
    background:
        linear-gradient(116deg, rgba(255, 255, 255, .99) 0%, rgba(247, 249, 252, .97) 42%, rgba(247, 249, 252, .58) 100%),
        linear-gradient(150deg, rgba(31, 94, 255, .1) 0%, rgba(31, 94, 255, 0) 34%),
        linear-gradient(28deg, rgba(21, 153, 87, 0) 54%, rgba(21, 153, 87, .09) 100%);
}

.home-hero-inner:after {
    background:
        linear-gradient(130deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .08) 52%, rgba(238, 244, 255, .16)),
        url('/assets/build-voto-hero-visual.png') center / cover no-repeat;
}

.home-search,
.hero-primary-actions {
    display: none !important;
}

.website-type-rail {
    margin-top: 34px;
}

.website-type-rail .website-type-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.website-type-rail .website-type-link:before,
.features .feature:before {
    display: none !important;
}

.ui-icon,
.step-icon,
.btn-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ui-icon {
    width: 30px;
    height: 30px;
    color: var(--blue);
}

.step-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    color: var(--blue);
}

.website-type-rail .website-type-link:nth-child(2) .ui-icon,
.features .feature:nth-child(2) .step-icon {
    color: var(--green);
}

.website-type-rail .website-type-link:nth-child(4) .ui-icon,
.features .feature:nth-child(3) .step-icon {
    color: var(--amber);
}

.ui-icon svg,
.step-icon svg,
.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-icon {
    width: 17px;
    height: 17px;
}

.preset-thumb {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 1px solid rgba(199, 210, 223, .72);
    box-shadow: 0 12px 26px rgba(16, 24, 40, .08);
}

@media (max-width: 900px) {
    .home-hero {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(247, 249, 252, .93) 58%, rgba(247, 249, 252, .78) 100%),
            linear-gradient(150deg, rgba(31, 94, 255, .08) 0%, rgba(31, 94, 255, 0) 42%),
            linear-gradient(28deg, rgba(21, 153, 87, 0) 56%, rgba(21, 153, 87, .08) 100%);
    }
}

/* Spacing and frosted-scroll hero refinement. */
.home-hero {
    min-height: auto;
    padding-top: clamp(38px, 5vw, 58px);
    padding-bottom: clamp(24px, 4vw, 34px);
    background:
        linear-gradient(116deg, rgba(255, 255, 255, .98) 0%, rgba(247, 249, 252, .92) 41%, rgba(247, 249, 252, .48) 100%),
        linear-gradient(150deg, rgba(31, 94, 255, .11) 0%, rgba(31, 94, 255, 0) 34%),
        linear-gradient(28deg, rgba(21, 153, 87, 0) 54%, rgba(21, 153, 87, .08) 100%),
        url('/assets/build-voto-hero-visual.png') right 48% / min(56vw, 650px) auto no-repeat;
    background-attachment: scroll, scroll, scroll, fixed;
}

.home-hero:before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .72) 44%, rgba(255, 255, 255, .16) 100%),
        radial-gradient(circle at 74% 20%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 25%);
    backdrop-filter: blur(2px) saturate(120%);
}

.home-hero:after {
    height: 30%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(238, 244, 255, .36) 58%, rgba(247, 249, 252, .7));
}

.home-hero-inner {
    min-height: 500px;
    align-content: center;
}

.home-hero-inner:after {
    top: 22px;
    background:
        linear-gradient(130deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .08) 52%, rgba(238, 244, 255, .18)),
        url('/assets/build-voto-hero-visual.png') center / cover no-repeat;
    backdrop-filter: blur(10px) saturate(118%);
    animation: hero-glass-float 12s var(--ease-out-quint) infinite alternate;
}

.website-type-rail {
    margin-top: 28px;
}

.flow-heading {
    margin-top: 30px;
}

.features {
    margin-top: 14px;
}

@keyframes hero-glass-float {
    from {
        transform: translate3d(0, 0, 0) rotate(1.5deg);
    }
    to {
        transform: translate3d(0, -10px, 0) rotate(2.5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-inner:after {
        animation: none !important;
    }
}

@media (max-width: 900px) {
    .home-hero {
        min-height: auto;
        padding-top: 22px;
        padding-bottom: 18px;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .84) 58%, rgba(255, 255, 255, .58) 100%),
            linear-gradient(180deg, rgba(238, 244, 255, .38), rgba(247, 249, 252, .86)),
            url('/assets/build-voto-hero-visual.png') 112% 34px / 58% auto no-repeat;
        background-attachment: scroll;
    }

    .home-hero:before {
        backdrop-filter: blur(1px) saturate(112%);
    }

    .home-hero-inner {
        min-height: auto;
        align-content: start;
        padding-right: 0;
    }

    .home-hero-inner:after {
        display: none;
    }

    .home-hero .pill {
        margin-top: 0;
    }

    .website-type-rail {
        margin-top: 20px;
        margin-bottom: 0;
    }

    .flow-heading {
        margin-top: 22px;
        margin-bottom: 16px;
    }

    .features {
        margin-top: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 760px) {
    .home-hero {
        margin-bottom: 18px;
        padding-top: 18px;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .86) 63%, rgba(255, 255, 255, .66) 100%),
            linear-gradient(180deg, rgba(238, 244, 255, .3), rgba(247, 249, 252, .82)),
            url('/assets/build-voto-hero-visual.png') 116% 22px / 62% auto no-repeat;
    }

    .page-title {
        margin-top: 12px;
    }

    .website-type-rail {
        margin-top: 18px;
        padding: 8px;
    }
}

/* Preset rail fit fix. Keeps all website-type buttons readable in the hero. */
.website-type-rail {
    box-sizing: border-box;
    gap: 8px;
    width: min(100%, 800px);
    max-width: calc(100vw - 64px);
    grid-template-columns: repeat(5, minmax(108px, 1fr));
}

.website-type-rail .website-type-link {
    box-sizing: border-box;
    min-width: 0;
    min-height: 74px;
    padding: 11px 8px;
    gap: 7px;
    flex-direction: column;
    line-height: 1.12;
    text-align: center;
}

.website-type-rail .website-type-link > span:not(.ui-icon) {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-wrap: balance;
    font-size: clamp(12px, .92vw, 14px);
}

.website-type-rail .ui-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 1040px) {
    .website-type-rail {
        width: min(100%, 660px);
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
}

@media (max-width: 760px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .topbar {
        overflow: hidden;
    }

    .topbar-inner {
        min-width: 0;
        gap: 10px;
    }

    .brand,
    .brand-text {
        min-width: 0;
    }

    .topbar .nav {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .topbar .nav a:not(.btn) {
        display: none;
    }

    .topbar .nav .btn {
        min-height: 42px;
        padding: 10px 12px;
        white-space: nowrap;
    }

    .home-hero .page-title {
        max-width: calc(100vw - 32px);
        font-size: clamp(32px, 9vw, 38px);
        line-height: 1.08;
    }

    .home-hero .muted {
        width: min(100%, 330px);
        max-width: calc(100vw - 32px);
        overflow-wrap: break-word;
        white-space: normal;
    }

    .website-type-rail {
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .website-type-rail .website-type-link {
        min-height: 66px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .card,
    .summary-card,
    .project-card,
    .dashboard-create-option,
    .option-card,
    .service-row,
    .email-box,
    .email-item,
    .demo-tile,
    .paid-service-card {
        min-width: 0;
    }

    .card,
    .project-card,
    .demo-tile,
    .notice,
    .api-result,
    .result,
    .doc-code,
    .doc-table {
        overflow-wrap: anywhere;
    }

    .project-meta span,
    .status,
    .paid-status,
    .country-chip strong,
    .summary-domain,
    .domain-preview,
    code {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .step-actions,
    .quick-links,
    .preset-actions,
    .doc-actions,
    .email-tools,
    .demo-actions {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .step-actions .btn,
    .quick-links .btn,
    .preset-actions .btn,
    .doc-actions .btn,
    .email-tools .btn,
    .demo-actions .btn {
        width: 100%;
    }

    .mobile-footer-nav {
        grid-auto-columns: minmax(0, 1fr);
    }

    .mobile-footer-icon {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .whatsapp-support {
        right: 12px;
        bottom: max(14px, env(safe-area-inset-bottom));
        min-height: 50px;
        padding: 7px 12px 7px 7px;
    }

    .has-mobile-footer .whatsapp-support {
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 124px);
    }
}

@media (max-width: 760px) {
    .whatsapp-support {
        width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 8px;
        justify-content: center;
    }

    .whatsapp-support-icon {
        width: 36px;
        height: 36px;
    }

    .whatsapp-support-copy {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .brand-name {
        max-width: 142px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar .nav .btn {
        padding-inline: 10px;
    }

    .whatsapp-support {
        width: 50px;
        height: 50px;
        padding: 7px;
        justify-content: center;
    }

    .whatsapp-support-copy {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Keep logged-in mobile support clear of the fixed dashboard navigation. */
@media (max-width: 760px) {
    .has-mobile-footer .mobile-footer-nav {
        z-index: 64;
    }

    .has-mobile-footer .whatsapp-support {
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(max(8px, env(safe-area-inset-bottom)) + 88px);
        z-index: 60;
    }
}

@media (min-width: 761px) {
    .home-hero-stage {
        display: none;
    }

    .create-step-heading {
        display: none;
    }
}

@media (max-width: 760px) {
/* Build.Voto mobile interface: creation clarity outside, calm control inside. */
:root {
    --voto-ink: #10203d;
    --voto-muted: #52627d;
    --voto-line: #d9e2f0;
    --voto-surface: #ffffff;
    --voto-canvas: #f4f7fb;
    --voto-blue: #155eef;
    --voto-blue-deep: #0e3fa8;
    --voto-blue-soft: #edf3ff;
    --voto-green: #087443;
    --voto-green-soft: #eaf8f0;
    --voto-danger: #b42318;
}

body {
    background: var(--voto-canvas);
    color: var(--voto-ink);
}

.topbar {
    height: 72px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--voto-line);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.brand-mark {
    border-radius: 9px;
    background: var(--voto-blue);
    box-shadow: none;
}

.brand-name,
.page-title,
.section-title,
.card h2,
.card h3 {
    color: var(--voto-ink);
}

.brand-subtitle,
.muted {
    color: var(--voto-muted);
}

.nav a:not(.btn) {
    border-radius: 7px;
}

.nav a:not(.btn):hover,
.nav a:not(.btn).active {
    background: var(--voto-blue-soft);
    color: var(--voto-blue-deep);
    box-shadow: none;
}

.btn,
.btn.blue,
.btn.green {
    border-radius: 8px;
    background: var(--voto-blue);
    box-shadow: none;
}

.btn.green {
    background: var(--voto-green);
}

.btn.secondary,
.btn.demo {
    background: var(--voto-surface);
    border-color: var(--voto-line);
    color: var(--voto-ink);
}

.btn:hover,
.btn.blue:hover,
.btn.green:hover {
    background: var(--voto-blue-deep);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn.green:hover {
    background: #075c36;
}

.btn:before {
    display: none;
}

.home-hero {
    min-height: 0;
    margin: -32px -24px 28px;
    padding: 54px 24px 42px;
    overflow: visible;
    border-bottom: 1px solid var(--voto-line);
    background: var(--voto-surface);
    animation: none;
}

.home-hero:before,
.home-hero:after,
.home-hero-inner:after {
    display: none;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    grid-template-areas:
        "label stage"
        "title stage"
        "copy stage"
        "choices stage";
    column-gap: clamp(32px, 7vw, 90px);
    row-gap: 0;
    min-height: 0;
    padding: 0;
}

.home-hero .pill {
    grid-area: label;
    width: fit-content;
    margin: 0 0 18px;
    border-color: #bfd1ff;
    background: var(--voto-blue-soft);
    color: var(--voto-blue-deep);
}

.home-hero .page-title {
    grid-area: title;
    max-width: 660px;
    margin: 0;
    font-size: clamp(40px, 4.6vw, 68px);
    line-height: 1.03;
    letter-spacing: -.032em;
    animation: none;
}

.home-hero .muted {
    grid-area: copy;
    max-width: 600px;
    margin: 18px 0 0;
    font-size: 17px;
    line-height: 1.6;
    animation: none;
}

.hero-accent {
    color: var(--voto-blue);
}

.home-hero-stage {
    display: block;
    grid-area: stage;
    align-self: stretch;
    padding: 24px;
    border-radius: 14px;
    background: var(--voto-blue-deep);
    color: #fff;
}

.home-hero-stage-head {
    display: grid;
    gap: 6px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.home-hero-stage-kicker {
    color: #bfd1ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.home-hero-stage-head strong {
    font-size: 20px;
    line-height: 1.25;
}

.home-hero-flow {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-hero-flow li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .17);
}

.home-hero-flow li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-hero-flow > li > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--voto-blue-deep);
    font-size: 11px;
    font-weight: 900;
}

.home-hero-flow strong,
.home-hero-flow small {
    display: block;
}

.home-hero-flow strong {
    font-size: 15px;
}

.home-hero-flow small {
    margin-top: 3px;
    color: #dce7ff;
    font-size: 13px;
    line-height: 1.42;
}

.website-type-rail,
.home-hero .hero-actions {
    grid-area: choices;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 660px;
    margin: 30px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    animation: none;
}

.website-type-rail .website-type-link,
.home-hero .hero-actions .btn {
    min-height: 88px;
    padding: 12px 7px;
    border: 1px solid var(--voto-line);
    border-radius: 10px;
    background: var(--voto-surface);
    color: var(--voto-ink);
    box-shadow: none;
}

.website-type-rail .website-type-link:hover,
.home-hero .hero-actions .btn:hover {
    border-color: var(--voto-blue);
    background: var(--voto-blue-soft);
    color: var(--voto-blue-deep);
    transform: translateY(-2px);
}

.website-type-rail .website-type-link:before {
    width: 28px;
    height: 28px;
    background: var(--voto-blue-soft);
    box-shadow: none;
}

.features {
    gap: 0;
    margin: 0 0 42px;
    border: 1px solid var(--voto-line);
    border-radius: 12px;
    background: var(--voto-surface);
}

.features:before,
.feature:after {
    display: none;
}

.features .feature {
    min-height: 144px;
    padding: 22px;
    border: 0;
    border-radius: 0;
    border-right: 1px solid var(--voto-line);
    background: transparent;
    box-shadow: none;
    text-align: left;
    justify-items: start;
}

.features .feature:last-child {
    border-right: 0;
}

.features .feature:before {
    width: 34px;
    height: 34px;
    margin: 0 0 12px;
    border-radius: 8px;
    background: var(--voto-blue-soft);
}

.features .feature:nth-child(2):before {
    background: var(--voto-green-soft);
}

.features .feature:nth-child(3):before {
    background: #fff3dc;
}

.home-band,
.new-user-panel {
    border: 1px solid var(--voto-line);
    border-radius: 12px;
    background: var(--voto-surface);
    box-shadow: none;
}

.demo-tile,
.preset-card {
    border-color: var(--voto-line);
    border-radius: 12px;
    background: var(--voto-surface);
    box-shadow: none;
}

.preset-card:before {
    display: none;
}

.preset-card:hover {
    border-color: #aec5ff;
    box-shadow: none;
}

.preset-thumb {
    border-color: var(--voto-line);
    box-shadow: none;
}

/* Logged-in workspace: content first, clear actions, restrained status. */
.has-mobile-footer .hero {
    padding: 38px 0 24px;
}

.has-mobile-footer .hero .page-title {
    max-width: 760px;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.has-mobile-footer .dashboard-summary {
    gap: 0;
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid var(--voto-line);
    border-radius: 12px;
    background: var(--voto-surface);
}

.has-mobile-footer .summary-card {
    min-height: 104px;
    padding: 19px;
    border: 0;
    border-right: 1px solid var(--voto-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.has-mobile-footer .summary-card:last-child {
    border-right: 0;
}

.has-mobile-footer .summary-card:hover {
    border-color: var(--voto-line);
    background: #f8faff;
    box-shadow: none;
    transform: none;
}

.has-mobile-footer .summary-card span {
    color: var(--voto-muted);
    letter-spacing: .02em;
}

.has-mobile-footer .summary-card strong {
    color: var(--voto-blue-deep);
    font-size: 30px;
}

.has-mobile-footer .dashboard-create-grid {
    gap: 10px;
    margin-bottom: 34px;
}

.has-mobile-footer .dashboard-create-option {
    min-height: 86px;
    border-color: var(--voto-line);
    border-radius: 10px;
    background: var(--voto-surface);
    box-shadow: none;
}

.has-mobile-footer .dashboard-create-option:hover {
    border-color: var(--voto-blue);
    box-shadow: none;
}

.has-mobile-footer .dashboard-create-icon {
    border-radius: 9px;
    background: var(--voto-blue-soft);
    color: var(--voto-blue-deep);
}

.has-mobile-footer .dashboard-toolbar {
    padding-top: 22px;
    border-top: 1px solid var(--voto-line);
}

.has-mobile-footer .project-filter input,
.has-mobile-footer .project-status-button,
.has-mobile-footer .owner-tabs,
.has-mobile-footer .owner-option-card,
.has-mobile-footer .card,
.has-mobile-footer .project-card {
    border-color: var(--voto-line);
    box-shadow: none;
}

.has-mobile-footer .project-status-button {
    border-radius: 7px;
}

.has-mobile-footer .project-status-button.active,
.has-mobile-footer .owner-tab.active {
    background: var(--voto-blue-deep);
    box-shadow: none;
}

.has-mobile-footer .project-card {
    gap: 15px;
    border-radius: 12px;
}

.has-mobile-footer .project-card:hover {
    border-color: #aec5ff;
    box-shadow: none;
}

.has-mobile-footer .project-meta span,
.has-mobile-footer .owner-section-pill {
    border-color: #cbd9fb;
    background: var(--voto-blue-soft);
    color: var(--voto-blue-deep);
}

.has-mobile-footer .owner-tabs {
    padding: 5px;
    border-radius: 10px;
    background: #f8faff;
}

.has-mobile-footer .owner-tab {
    border-radius: 7px;
}

.has-mobile-footer .owner-option-map {
    gap: 9px;
}

.has-mobile-footer .owner-option-card {
    min-height: 94px;
    border-radius: 10px;
    background: var(--voto-surface);
}

.has-mobile-footer .owner-option-card:hover {
    border-color: var(--voto-blue);
    background: var(--voto-blue-soft);
}

@media (max-width: 900px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "label"
            "title"
            "copy"
            "stage"
            "choices";
        gap: 0;
    }

    .home-hero-stage {
        margin-top: 28px;
    }

    .website-type-rail,
    .home-hero .hero-actions {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .topbar {
        min-height: 66px;
    }

    .home-hero {
        margin: -18px -16px 22px;
        padding: 30px 16px 28px;
    }

    .home-hero .page-title {
        max-width: 360px;
        font-size: 38px;
        line-height: 1.08;
    }

    .home-hero .muted {
        width: auto;
        max-width: 100%;
        font-size: 16px;
    }

    .home-hero-stage {
        padding: 20px;
        border-radius: 12px;
    }

    .website-type-rail,
    .home-hero .hero-actions {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .website-type-rail .website-type-link,
    .home-hero .hero-actions .btn {
        min-height: 62px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .features {
        display: grid;
        grid-template-columns: 1fr;
        border-radius: 10px;
    }

    .features .feature {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--voto-line);
    }

    .features .feature:last-child {
        border-bottom: 0;
    }

    .has-mobile-footer .hero {
        padding: 26px 0 20px;
    }

    .has-mobile-footer .hero .page-title {
        font-size: 32px;
    }

    .has-mobile-footer .dashboard-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 22px;
    }

    .has-mobile-footer .summary-card {
        min-height: 92px;
        padding: 15px;
        border-right: 1px solid var(--voto-line);
        border-bottom: 1px solid var(--voto-line);
    }

    .has-mobile-footer .summary-card:nth-child(even) {
        border-right: 0;
    }

    .has-mobile-footer .summary-card:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .has-mobile-footer .mobile-footer-nav {
        border-color: var(--voto-line);
        border-radius: 12px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 8px 20px rgba(16, 32, 61, .12);
    }

    .has-mobile-footer .mobile-footer-link.active {
        background: var(--voto-blue-deep);
    }
}

/* Mobile action hierarchy: links are visibly actionable; information stays quiet. */
.website-type-rail,
.home-hero .hero-actions {
    gap: 10px;
}

.website-type-rail .website-type-link,
.home-hero .hero-actions .btn {
    position: relative;
    min-height: 68px;
    padding: 12px 46px 12px 14px;
    border-color: #bfd1ff;
    background: var(--voto-blue-soft);
    color: var(--voto-blue-deep);
    font-weight: 850;
}

.website-type-rail .website-type-link:after,
.home-hero .hero-actions .btn:after {
    content: "›";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--voto-blue);
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
}

.website-type-rail .website-type-link .ui-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
}

.website-type-rail .website-type-link:nth-child(2),
.home-hero .hero-actions .btn:nth-child(2) {
    border-color: #b9e5cf;
    background: var(--voto-green-soft);
    color: #075c36;
}

.website-type-rail .website-type-link:nth-child(2):after,
.home-hero .hero-actions .btn:nth-child(2):after {
    background: var(--voto-green);
}

.website-type-rail .website-type-link:nth-child(3),
.home-hero .hero-actions .btn:nth-child(3) {
    border-color: #b9dffa;
    background: #ecf7ff;
    color: #075985;
}

.website-type-rail .website-type-link:nth-child(3):after,
.home-hero .hero-actions .btn:nth-child(3):after {
    background: #0879bf;
}

.website-type-rail .website-type-link:nth-child(4),
.home-hero .hero-actions .btn:nth-child(4) {
    border-color: #f3d6a0;
    background: #fff7e7;
    color: #8a4b06;
}

.website-type-rail .website-type-link:nth-child(4):after,
.home-hero .hero-actions .btn:nth-child(4):after {
    background: #b45309;
}

.website-type-rail .website-type-link:nth-child(5),
.home-hero .hero-actions .btn:nth-child(5) {
    border-color: #d9c8ff;
    background: #f5f0ff;
    color: #5b21b6;
}

.website-type-rail .website-type-link:nth-child(5):after,
.home-hero .hero-actions .btn:nth-child(5):after {
    background: #6d28d9;
}

.website-type-rail .website-type-link:active,
.home-hero .hero-actions .btn:active,
.has-mobile-footer .dashboard-create-option:active,
.has-mobile-footer .owner-option-card:active {
    transform: scale(.985);
}

.features {
    gap: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.features .feature {
    position: relative;
    padding: 18px 4px 18px 54px;
    border-bottom-color: var(--voto-line);
    background: transparent;
}

.features .feature:before {
    position: absolute;
    left: 4px;
    top: 18px;
    width: 34px;
    height: 34px;
    margin: 0;
}

.features .feature strong {
    font-size: 15px;
}

.features .feature .muted {
    display: block;
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.5;
}

.home-band,
.new-user-panel {
    border-color: var(--voto-line);
    background: #f8faff;
}

.demo-tile {
    border-color: var(--voto-line);
    background: var(--voto-surface);
}

.has-mobile-footer .dashboard-summary {
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 8px;
    overflow: visible;
}

.has-mobile-footer .summary-card {
    min-height: 82px;
    border: 1px solid var(--voto-line) !important;
    border-radius: 10px;
    background: #f8faff;
}

.has-mobile-footer .summary-card strong {
    font-size: 25px;
}

.has-mobile-footer .dashboard-create-grid {
    gap: 10px;
}

.has-mobile-footer .dashboard-create-option {
    position: relative;
    min-height: 84px;
    padding-right: 44px;
    border-color: #bfd1ff;
    background: var(--voto-blue-soft);
    color: var(--voto-blue-deep);
}

.has-mobile-footer .dashboard-create-option:after,
.has-mobile-footer .owner-option-card:after {
    content: "›";
    position: absolute;
    right: 14px;
    top: 50%;
    color: currentColor;
    font-size: 25px;
    line-height: 1;
    transform: translateY(-50%);
}

.has-mobile-footer .dashboard-create-option:nth-child(2) {
    border-color: #b9e5cf;
    background: var(--voto-green-soft);
    color: #075c36;
}

.has-mobile-footer .dashboard-create-option:nth-child(3) {
    border-color: #b9dffa;
    background: #ecf7ff;
    color: #075985;
}

.has-mobile-footer .dashboard-create-option:nth-child(4) {
    border-color: #f3d6a0;
    background: #fff7e7;
    color: #8a4b06;
}

.has-mobile-footer .dashboard-create-option:nth-child(5) {
    border-color: #d9c8ff;
    background: #f5f0ff;
    color: #5b21b6;
}

.has-mobile-footer .dashboard-create-option:hover {
    border-color: currentColor;
    background: var(--voto-surface);
}

.has-mobile-footer .dashboard-create-option strong,
.has-mobile-footer .dashboard-create-option small {
    color: currentColor;
}

.has-mobile-footer .dashboard-create-option small {
    opacity: .78;
}

.has-mobile-footer .dashboard-create-icon {
    background: rgba(255, 255, 255, .82);
    color: currentColor;
}

.has-mobile-footer .project-card,
.has-mobile-footer .manage-stack > .card,
.has-mobile-footer .manage-grid > .card {
    background: var(--voto-surface);
}

.has-mobile-footer .project-card {
    border-color: var(--voto-line);
}

.has-mobile-footer .owner-option-map {
    gap: 10px;
}

.has-mobile-footer .owner-option-card {
    position: relative;
    min-height: 82px;
    padding: 14px 40px 14px 14px;
    border-color: #cbd9fb;
    background: #f8faff;
    color: var(--voto-blue-deep);
}

.has-mobile-footer .owner-option-card span,
.has-mobile-footer .owner-option-card strong {
    color: inherit;
}

.has-mobile-footer .owner-option-card strong {
    margin-top: 4px;
    font-size: 14px;
}

.has-mobile-footer .owner-option-card:hover {
    border-color: var(--voto-blue);
    background: var(--voto-blue-soft);
}

/* Mobile creation flow: one calm task surface, clear progress, full-width actions. */
.create-hero {
    padding: 24px 0 18px;
}

.create-hero .pill {
    margin-bottom: 12px;
}

.create-hero .page-title {
    max-width: 340px;
    font-size: 31px;
    line-height: 1.12;
    letter-spacing: -.022em;
}

.create-hero .muted {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.create-grid {
    display: block;
    margin: 0 -16px;
    padding: 0;
}

.create-grid:before {
    display: none;
}

.generate-form-card {
    padding: 20px 16px 24px;
    border: 0;
    border-radius: 0;
    background: var(--voto-surface);
    box-shadow: none;
}

.generate-form-card:before {
    display: none;
}

.create-step-heading {
    display: grid;
    gap: 3px;
    margin: 0 0 16px;
}

.create-step-heading span {
    color: var(--voto-blue-deep);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .02em;
}

.create-step-heading strong {
    color: var(--voto-ink);
    font-size: 21px;
    line-height: 1.25;
}

.step-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
}

.step-pill {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 6px;
    min-height: 48px;
    padding: 6px;
    border: 1px solid var(--voto-line);
    border-radius: 8px;
    background: #f8faff;
    color: var(--voto-muted);
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    min-width: 0;
}

.step-pill:before {
    display: none;
}

.step-number {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #e6ecf5;
    box-shadow: none;
    color: var(--voto-muted);
    font-size: 12px;
}

.step-label {
    min-width: 0;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.step-pill.active {
    border-color: var(--voto-blue);
    background: var(--voto-blue-soft);
    color: var(--voto-blue-deep);
}

.step-pill.active .step-number {
    background: var(--voto-blue);
    color: #fff;
}

.step-pill.done {
    border-color: #b9e5cf;
    background: var(--voto-green-soft);
    color: #075c36;
}

.step-pill.done:before {
    display: none;
}

.step-pill.done .step-number {
    background: var(--voto-green);
    color: #fff;
}

.form-step.active {
    animation: none;
}

.generate-form-card .form-section-title {
    margin-bottom: 10px;
    font-size: 19px;
}

.generate-form-card .label {
    margin-bottom: 6px;
    color: var(--voto-muted);
    font-size: 12px;
    letter-spacing: .03em;
}

.generate-form-card input,
.generate-form-card textarea,
.generate-form-card select {
    min-height: 48px;
    border-color: var(--voto-line);
    border-radius: 8px;
    font-size: 16px;
}

.generate-form-card textarea {
    min-height: 116px;
}

.generate-form-card .notice {
    border-color: #cbd9fb;
    border-radius: 8px;
    background: var(--voto-blue-soft);
    color: var(--voto-blue-deep);
}

.generate-form-card .domain-preview {
    margin-top: 12px;
    border: 1px solid var(--voto-line);
    border-style: solid;
    border-radius: 8px;
    background: #f8faff;
}

.generate-form-card .country-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
}

.generate-form-card .country-chip {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-color: var(--voto-line);
    border-radius: 8px;
    background: #f8faff;
}

.generate-form-card .country-chip span {
    font-size: 12px;
    letter-spacing: .02em;
}

.generate-form-card .country-chip strong {
    color: var(--voto-blue-deep);
    text-align: right;
}

.generate-form-card .country-chip:nth-child(2) {
    border-color: #bfd1ff;
    background: var(--voto-blue-soft);
}

.generate-form-card .country-chip:nth-child(3) {
    border-color: #b9e5cf;
    background: var(--voto-green-soft);
}

.generate-form-card .country-chip:nth-child(3) strong {
    color: #075c36;
}

.generate-form-card .step-actions {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 10px;
    align-items: center;
    margin: 24px -16px -24px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--voto-line);
    background: rgba(255, 255, 255, .98);
}

.generate-form-card .step-actions .muted {
    display: none;
}

.generate-form-card .step-actions .btn {
    width: 100%;
    min-height: 48px;
}

.generate-form-card .step-actions .btn:only-of-type {
    grid-column: 1 / -1;
}

.generate-panel {
    margin: 16px;
    padding: 18px;
    border-color: var(--voto-line);
    border-radius: 10px;
    background: #f8faff;
    box-shadow: none;
}

.generate-panel .features {
    margin-top: 16px !important;
}

.generate-panel .feature {
    padding-left: 52px;
}

.create-grid,
.generate-form-card,
.step-progress {
    width: 100%;
    max-width: 100%;
}

.step-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.step-pill {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    min-height: 58px;
    padding: 5px 3px;
    text-align: center;
}

.step-label {
    display: block;
    width: 100%;
    font-size: 9px;
    line-height: 1.05;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
}
