/* ============================================================
   DFY Films — Client portal UI (client.css)
   Layout propio del lado cliente: barra superior + tab bar móvil,
   anillos de progreso, tarjetas y línea de tiempo.
   Usa los tokens de base.css (marca DFY Films).
   ============================================================ */

:root {
    --r-lg: 22px;
    --r-md: 14px;
    --c-card: rgba(30, 41, 59, .42);
    --c-card-hi: rgba(30, 41, 59, .72);
    --c-line: rgba(248, 250, 252, .09);
    --c-glow: rgba(0, 242, 254, .12);
    --top-h: 64px;
}

html { height: auto; }
body.c-body {
    min-height: 100vh;
    height: auto;
    background:
        radial-gradient(900px 420px at 85% -120px, rgba(0, 242, 254, .13), transparent 70%),
        radial-gradient(700px 380px at -10% 20%, rgba(30, 41, 59, .55), transparent 70%),
        var(--bg);
    background-attachment: fixed;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; }

/* ---------- Top bar ---------- */
.c-top {
    position: sticky; top: 0; z-index: 40;
    background: rgba(9, 13, 22, .78);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-line);
}
.c-top__in {
    max-width: 1120px; margin: 0 auto; height: var(--top-h);
    padding: 0 20px; display: flex; align-items: center; gap: 24px;
}
.c-top .logo { font-size: 1.3rem; }
.c-top__brand { display: inline-flex; text-decoration: none; }
.c-nav { display: none; gap: 4px; margin-left: 12px; padding: 4px; border: 1px solid var(--c-line); border-radius: 999px; background: rgba(30, 41, 59, .35); }
.c-nav a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px;
    color: var(--gray-light); font-size: 14px; font-weight: 500; text-decoration: none;
    transition: background .2s, color .2s;
}
.c-nav a svg { width: 16px; height: 16px; }
.c-nav a:hover { color: var(--white); }
.c-nav a.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.c-user { margin-left: auto; position: relative; }
.c-user__btn {
    display: flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--c-line);
    padding: 4px 12px 4px 4px; border-radius: 999px; color: var(--white); cursor: pointer; font: inherit; font-size: 13px;
}
.c-user__btn:hover { border-color: var(--border-light); }
.c-avatar {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface-3); color: var(--accent); font-weight: 700; font-size: 12px;
}
.c-user__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; display: none;
    background: var(--surface-2); border: 1px solid var(--border-light); border-radius: var(--r-md);
    padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.c-menu.is-open { display: block; }
.c-menu a, .c-menu button {
    display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px;
    background: none; border: 0; color: var(--white); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
}
.c-menu a:hover, .c-menu button:hover { background: var(--surface-3); }
.c-menu__mail { padding: 8px 12px; font-size: 12px; color: var(--gray); border-bottom: 1px solid var(--c-line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Tab bar (móvil) ---------- */
.c-tabbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px;
    background: rgba(17, 24, 39, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--border-light); border-radius: 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}
.c-tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px;
    border-radius: 16px; color: var(--gray); font-size: 11px; font-weight: 600; text-decoration: none;
}
.c-tabbar a svg { width: 22px; height: 22px; }
.c-tabbar a.is-active { color: var(--accent); background: var(--c-glow); }

@media (min-width: 761px) {
    .c-nav { display: inline-flex; }
    .c-tabbar { display: none; }
    body.c-body { padding-bottom: 48px; }
}
@media (max-width: 760px) {
    .c-user__name { display: none; }
    .c-user__btn { padding: 4px; }
}

/* ---------- Contenido ---------- */
.content { max-width: 1120px; margin: 0 auto; padding: 32px 20px 24px; }
.c-head { margin-bottom: 28px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.c-head h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; }
.c-head .sub { color: var(--gray-light); margin-top: 8px; max-width: 560px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-light); font-size: 14px; margin-bottom: 18px; text-decoration: none; }
.back:hover { color: var(--white); }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin: 36px 0 16px; }
.sec-title h2 { font-size: 20px; }
.sec-title a { font-size: 14px; }

.c-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; }
.c-card--hi { background: linear-gradient(160deg, var(--c-card-hi), rgba(17, 24, 39, .5)); border-color: var(--border-light); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.state { text-align: center; color: var(--gray); padding: 32px 12px; font-size: 14px; }

/* ---------- Hero / anillos ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero__label { font-size: 13px; color: var(--gray-light); margin-bottom: 4px; }
.hero__cycle { font-family: var(--font-head); font-size: 22px; margin-bottom: 20px; }
.rings { display: flex; gap: 28px; flex-wrap: wrap; }
.ring { display: flex; align-items: center; gap: 14px; }
.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); flex: none; }
.ring__bg { fill: none; stroke: rgba(248, 250, 252, .08); stroke-width: 9; }
.ring__fg { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px rgba(0, 242, 254, .45)); }
.ring--alt .ring__fg { stroke: #7DD3FC; filter: drop-shadow(0 0 6px rgba(125, 211, 252, .35)); }
.ring__txt b { display: block; font-family: var(--font-head); font-size: 26px; line-height: 1.1; }
.ring__txt span { font-size: 13px; color: var(--gray-light); }
.ring__txt small { display: block; font-size: 12px; color: var(--gray); margin-top: 2px; }
@media (max-width: 420px) { .ring svg { width: 92px; height: 92px; } .ring__txt b { font-size: 22px; } .rings { gap: 18px; } }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: rgba(9, 13, 22, .55); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 14px 12px; text-align: center; }
.tile b { display: block; font-family: var(--font-head); font-size: 28px; line-height: 1; }
.tile span { display: block; margin-top: 6px; font-size: 12px; color: var(--gray-light); }
.tile--accent b { color: var(--accent); }

/* ---------- Pills / estados ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: rgba(124, 138, 160, .16); color: var(--gray-light); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-accent { background: var(--c-glow); color: var(--accent); }
.pill-warning { background: rgba(229, 160, 0, .14); color: #F5B93A; }
.pill-success { background: rgba(34, 197, 94, .14); color: #4ADE80; }
.pill-muted { background: rgba(124, 138, 160, .16); color: var(--gray-light); }

/* Barra de etapas (4 segmentos) */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.stages i { height: 4px; border-radius: 4px; background: rgba(248, 250, 252, .1); }
.stages i.on { background: var(--accent); }
.stages--big { gap: 8px; }
.stages--big i { height: 6px; }
.stage-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; font-size: 12px; color: var(--gray); }
.stage-labels span.on { color: var(--white); font-weight: 600; }

/* ---------- Tarjetas de video ---------- */
.vlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .vlist { grid-template-columns: 1fr; } }
.vcard { display: block; color: inherit; text-decoration: none; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 18px 20px; transition: transform .2s, border-color .2s, background .2s; }
.vcard:hover { transform: translateY(-2px); border-color: rgba(0, 242, 254, .35); background: var(--c-card-hi); color: inherit; }
.vcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vcard__title { font-weight: 600; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.vcard__meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--gray); }
.vcard__meta .go { color: var(--accent); font-weight: 600; }

/* Segmentos (filtros) */
.seg { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 20px; border: 1px solid var(--c-line); border-radius: 999px; background: rgba(30, 41, 59, .3); scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--gray-light); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.seg button em { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: rgba(248, 250, 252, .08); }
.seg button.is-active { background: var(--surface-3); color: var(--white); box-shadow: inset 0 0 0 1px var(--border-light); }
.seg button.is-active em { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ---------- Detalle de video ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 22px; }
.fact { background: rgba(9, 13, 22, .55); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 14px 16px; }
.fact small { display: block; font-size: 12px; color: var(--gray-light); margin-bottom: 4px; }
.fact b { font-size: 16px; color: var(--accent); }
.fact p { font-size: 14px; white-space: pre-wrap; }
.files { display: grid; gap: 12px; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.file:hover { border-color: rgba(0, 242, 254, .4); background: var(--c-card-hi); color: inherit; }
.file__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--c-glow); color: var(--accent); display: grid; place-items: center; flex: none; }
.file__main { flex: 1; min-width: 0; }
.file__label { font-weight: 600; overflow-wrap: anywhere; }
.file__type { font-size: 12px; color: var(--gray); }
.file__go { color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) { .file__go span { display: none; } }

/* ---------- Plan ---------- */
.planhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.planhead h2 { font-size: clamp(28px, 5vw, 38px); }
.planhead .sub { color: var(--gray-light); margin-top: 6px; }
.price { font-family: var(--font-head); font-size: 34px; color: var(--accent); line-height: 1; }
.price small { font-size: 14px; color: var(--gray-light); font-family: var(--font-body); }
.incl { list-style: none; display: grid; gap: 12px; }
.incl li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--gray-light); }
.incl li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--c-glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300F2FE' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; }
.incl b { color: var(--white); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.timeline { list-style: none; position: relative; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--c-line); }
.timeline li { position: relative; padding: 0 0 20px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--gray); }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(0, 242, 254, .5); }
.timeline__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.timeline__title { font-weight: 600; overflow-wrap: anywhere; }
.timeline__date { font-size: 12px; color: var(--gray); margin-top: 2px; }
.cycles { display: grid; gap: 10px; }
.cycle { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: rgba(9, 13, 22, .45); font-size: 14px; }
.cycle span { color: var(--gray-light); }
.note { margin-top: 28px; padding: 16px 18px; border: 1px dashed var(--border-light); border-radius: var(--r-md); color: var(--gray-light); font-size: 14px; }

/* ---------- Formularios y botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); color: var(--accent-ink); box-shadow: 0 8px 26px rgba(0, 242, 254, .3); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--border-light); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--error); color: #fff; }
.btn-block { width: 100%; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-light); margin-bottom: 6px; }
.input { width: 100%; padding: 13px 16px; background: rgba(9, 13, 22, .7); border: 1px solid var(--border-light); border-radius: var(--r-md); color: var(--white); font: inherit; font-size: 15px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--c-glow); }
.form-message { display: none; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; margin-bottom: 16px; }
.form-message.is-error { display: block; background: rgba(239, 68, 68, .12); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, .3); }
.form-message.is-success { display: block; background: rgba(34, 197, 94, .12); color: #86EFAC; border: 1px solid rgba(34, 197, 94, .3); }
.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.profile .c-avatar { width: 56px; height: 56px; font-size: 18px; }
.profile b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.profile span { font-size: 13px; color: var(--gray-light); }

/* ---------- Modal (anuncio y diálogos de Utils) ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(4, 7, 13, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-overlay.is-open { display: flex; }
.modal { width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--border-light); border-radius: var(--r-lg); padding: 24px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal__close { background: none; border: 0; color: var(--gray); font-size: 24px; cursor: pointer; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.skel { background: linear-gradient(90deg, rgba(248,250,252,.04), rgba(248,250,252,.09), rgba(248,250,252,.04)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--r-md); min-height: 20px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 520px) {
    .rings { justify-content: space-around; gap: 12px; }
    .ring { flex-direction: column; text-align: center; gap: 8px; }
    .ring svg { width: 104px; height: 104px; }
    .hero__cycle { font-size: 19px; }
}

/* ============================================================
   Animaciones de entrada (se desactivan con prefers-reduced-motion)
   ============================================================ */
@keyframes rise   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes floatUp{ from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
@keyframes pop    { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes slideX { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes barGrow{ from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ringDraw { from { stroke-dashoffset: var(--c); } }
@keyframes modalIn{ from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, .0); } 50% { box-shadow: 0 0 0 6px rgba(0, 242, 254, .12); } }

@media (prefers-reduced-motion: no-preference) {
    body.c-body { animation: fade .5s ease both; }
    .c-top { animation: dropIn .55s cubic-bezier(.2, .8, .2, 1) both; }
    .c-tabbar { animation: floatUp .7s cubic-bezier(.2, .8, .2, 1) .25s both; }
    .c-nav a { animation: pop .45s cubic-bezier(.2, .8, .2, 1) both; }
    .c-nav a:nth-child(1) { animation-delay: .15s; } .c-nav a:nth-child(2) { animation-delay: .22s; }
    .c-nav a:nth-child(3) { animation-delay: .29s; } .c-nav a:nth-child(4) { animation-delay: .36s; }
    .c-tabbar a { animation: pop .45s cubic-bezier(.2, .8, .2, 1) both; }
    .c-tabbar a:nth-child(1) { animation-delay: .45s; } .c-tabbar a:nth-child(2) { animation-delay: .52s; }
    .c-tabbar a:nth-child(3) { animation-delay: .59s; } .c-tabbar a:nth-child(4) { animation-delay: .66s; }

    /* Bloques principales de cada página, en cascada */
    .content > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
    .content > *:nth-child(1) { animation-delay: .05s; } .content > *:nth-child(2) { animation-delay: .15s; }
    .content > *:nth-child(3) { animation-delay: .25s; } .content > *:nth-child(4) { animation-delay: .35s; }
    .content > *:nth-child(5) { animation-delay: .45s; } .content > *:nth-child(n+6) { animation-delay: .55s; }
    .eyebrow { animation: slideX .6s cubic-bezier(.2, .8, .2, 1) .1s both; }

    /* Elementos que se cargan por API: animan al insertarse */
    .hero > *, .grid-2 > *, .planhead > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
    .tile, .fact, .cycle, .file, .vcard, .state { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
    .tile:nth-child(1), .vcard:nth-child(1), .file:nth-child(1), .fact:nth-child(1), .cycle:nth-child(1) { animation-delay: .10s; }
    .tile:nth-child(2), .vcard:nth-child(2), .file:nth-child(2), .fact:nth-child(2), .cycle:nth-child(2) { animation-delay: .18s; }
    .tile:nth-child(3), .vcard:nth-child(3), .file:nth-child(3), .fact:nth-child(3), .cycle:nth-child(3) { animation-delay: .26s; }
    .vcard:nth-child(4), .file:nth-child(4) { animation-delay: .34s; }
    .vcard:nth-child(5), .file:nth-child(5) { animation-delay: .42s; }
    .vcard:nth-child(n+6), .file:nth-child(n+6) { animation-delay: .5s; }

    .ring { animation: pop .7s cubic-bezier(.2, .8, .2, 1) both; }
    .ring:nth-child(2) { animation-delay: .15s; }
    .ring__fg { animation: ringDraw 1.4s cubic-bezier(.2, .8, .2, 1) .35s both; }
    .stages i { transform-origin: left center; animation: barGrow .6s cubic-bezier(.2, .8, .2, 1) both; }
    .stages i:nth-child(1) { animation-delay: .30s; } .stages i:nth-child(2) { animation-delay: .42s; }
    .stages i:nth-child(3) { animation-delay: .54s; } .stages i:nth-child(4) { animation-delay: .66s; }

    .incl li, .timeline li { animation: slideX .55s cubic-bezier(.2, .8, .2, 1) both; }
    .incl li:nth-child(1), .timeline li:nth-child(1) { animation-delay: .20s; } .incl li:nth-child(2), .timeline li:nth-child(2) { animation-delay: .28s; }
    .incl li:nth-child(3), .timeline li:nth-child(3) { animation-delay: .36s; } .incl li:nth-child(4), .timeline li:nth-child(4) { animation-delay: .44s; }
    .incl li:nth-child(5), .timeline li:nth-child(5) { animation-delay: .52s; } .incl li:nth-child(6), .timeline li:nth-child(6) { animation-delay: .60s; }
    .incl li:nth-child(n+7), .timeline li:nth-child(n+7) { animation-delay: .68s; }
    .timeline li.done::before { animation: glowPulse 2.4s ease-in-out 1s 2; }
    .seg button { animation: pop .45s cubic-bezier(.2, .8, .2, 1) both; }
    .seg button:nth-child(2) { animation-delay: .07s; } .seg button:nth-child(3) { animation-delay: .14s; }
    .seg button:nth-child(4) { animation-delay: .21s; } .seg button:nth-child(5) { animation-delay: .28s; }
    .profile .c-avatar { animation: pop .6s cubic-bezier(.2, .8, .2, 1) .2s both; }
    .modal-overlay.is-open { animation: fade .25s ease both; }
    .modal-overlay.is-open .modal { animation: modalIn .4s cubic-bezier(.2, .8, .2, 1) both; }
    .c-menu.is-open { animation: pop .2s ease both; transform-origin: top right; }

    /* Login */
    .gate > .logo { animation: pop .7s cubic-bezier(.2, .8, .2, 1) both; }
    .gate > h1 { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .12s both; }
    .gate > p.lead { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .2s both; }
    .gate > .c-card { animation: rise .8s cubic-bezier(.2, .8, .2, 1) .3s both; }
    .gate .field { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
    .gate .field:nth-of-type(1) { animation-delay: .5s; } .gate .field:nth-of-type(2) { animation-delay: .6s; }
    .gate > .foot { animation: fade .8s ease .8s both; }
    .gate > .tag { animation: fade .8s ease 1s both; }
}
